-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Closed
Description
There is a bug in the focus style of the custom range input. Related on 6c620de
bootstrap/dist/css/bootstrap.css
Lines 3740 to 3743 in 8f7bd41
| .custom-range::-webkit-slider-thumb:focus { | |
| outline: none; | |
| box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); | |
| } |
It seems that the focus shadow is defined, but this does not apply:

Demo: http://getbootstrap.com/docs/4.1/components/forms/#range
The :focus selector must be put after the .custom-range: Also, outline: none; before the box-shadow is unnecessary.
Therefore, it can be fixed as follows:
.custom-range:focus::-webkit-slider-thumb {
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}This fixes add focus shadow, but IE and Edge have new issue of cutting focus shadow.
Demo: https://codepen.io/anon/pen/BxzyNB
So we should:
- Remove the wrong focus shadow CSS? (Current style, but has accessibility issue)
- Fix the focus shadow CSS as above? (IE/Edge has issue)
- Add an alternative focus style?
Reactions are currently unavailable

