Skip to content

v5.2.0 undefined variables for the btn class #36938

@Geuchmann

Description

@Geuchmann

Prerequisites

Describe the issue

The .btn class is using e.g. the --{#prefix}-btn-hover-border-color variable, but it's not declared for it.
It's only decleard over the button-variant mixin for the .btn-#{color} classes.

1

My expected behavior would be, keep using parent stylings (in this case .btn), if the child stylings (in this case .btn:hover) are missing (or unset because of undeclared variables).
Else we would have a black border in this case, insted of a transparent border (changed behavior compared with v5.0).

example

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

No response

What version of Bootstrap are you using?

v5.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions