Undefined disabled border color for buttons causes inconsistent visuals when customizing
Created by: nickalbrecht
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
I'm hitting an issue regarding the display colors of buttons when trying to customize them, which appears to be caused by an undefined variable in the SCSS files.
Given the following button declaration
<button type="button" class="btn btn-outline-primary">Primary</button>
If I want to change the text red, I can apply a style for the color
, setting it to red, and it affects the color of the text as expected
But if the button is disabled, then the style affects the entire button, border as well. I checked the css, and there is a line that attempts to enforce the border color of disabled buttons at _buttons.scss:92, but it looks like the variable being used in the resulting CSS var(--bs-btn-disabled-border-color)
is not defined. I'm assuming that this is an easy enough fix to just have that variable declared, but I'm not sure where, else I would have tried a pull request.
Reduced test cases
https://web-platform-vzcsqp.stackblitz.io/
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.2.0-beta1