New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.2.1 broke .btn:focus box-shadow behaviour #37106
Comments
Isn't your issue linked to the following modification #37026?
When you're talking about ":focus(ing)`, is it focusing with the mouse or the keyboard (or both)? |
Okey, sorry - was not aware that the :focus was removed. Are there any solution to bring it back? We love the focus-shadows. |
I'm closing it since the issue seems to be resolved.
You'll have to create your own |
Super simple example for restoring the focus ring thing:
|
Prerequisites
Describe the issue
Upgraded from 5.2.0 and quickly noticed that the box-shadow disappeared from all my buttons when :focus(ing).
The options (https://getbootstrap.com/docs/5.2/customize/options/) clearly states;
$enable-shadows | true or false (default) | Enables predefined decorative box-shadow styles on various components. Does not affect box-shadows used for focus states.
Could this be the issue?
https://github.com/twbs/bootstrap/blob/main/scss/_buttons.scss
#21, the "--#{$prefix}btn-focus-shadow-rgb" variable doesnt seem to exist
Reduced test cases
https://github.com/twbs/bootstrap/blob/main/scss/_buttons.scss
#21, add default value to
--#{$prefix}btn-focus-shadow-rgb
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.2.1
The text was updated successfully, but these errors were encountered: