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

Switch :focus uses hardcoded color instead of $primary

Created by: antoinematyja

Hello,

I'm testing on macOS 10.15.3 with Chrome 81.

The new switch design uses a hardcoded color in its :focus style, which results in wrong color if the primary color was overriden.

Here is an example with $primary set to green (the switch checkbox is in :focus state):

image

Culprit is here:

https://github.com/twbs/bootstrap/blob/d2ed920b1537af88e85d6b28cc2461fd6747d745/scss/_variables.scss#L680

Which should be based on $primary instead of a hardcoded value.

Thanks

Assignee
Assign to
Time tracking