Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #36938
Closed
Open
Issue created Aug 10, 2022 by Administrator@rootContributor3 of 3 checklist items completed3/3 checklist items

v5.2.0 undefined variables for the btn class

Created by: Geuchmann

Prerequisites

  • I have searched for duplicate or closed issues
  • I have validated any HTML to avoid common problems
  • I have read the contributing guidelines

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

Assignee
Assign to
Time tracking