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
  • #26379
Closed
Open
Issue created Apr 25, 2018 by Administrator@rootContributor

Custom range focus style issue

Created by: ysds

There is a bug in the focus style of the custom range input. Related on 6c620de0

https://github.com/twbs/bootstrap/blob/8f7bd419935adfcd53c471a0202083464800619e/dist/css/bootstrap.css#L3740-L3743

It seems that the focus shadow is defined, but this does not apply: image

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.

Chrome: image

IE11/Edge image

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?
Assignee
Assign to
Time tracking