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

Safari and Chrome on Mac and iOS didn't apply color for disabled and readonly inputs

Created by: ihorzenich

Safari and Chrome on Mac and iOS didn't apply color for readonly and disabled inputs, they use internal -webkit-text-fill-color property instead of color, so you can't customize text color for disabled/readonly inputs.

Because we already have styles for fixing browser inconsistencies for form-colntrols like

  • placeholder color in Firefox: https://github.com/twbs/bootstrap/blob/master/scss/forms/_form-control.scss#L43
  • and iOS disabled/readonly color: https://github.com/twbs/bootstrap/blob/master/scss/forms/_form-control.scss#L56

it seems legit to add correspondent styles to fix the same issues for Chrome/Safari on MacOS/iOS.

It could be fixed by:

.form-control {
  ...
  &:disabled,
  &[readonly] {
    -webkit-text-fill-color: currentColor;
  }
}

Screenshots of issue: MacOS disabled form-controls MacOS readonly form-controls

Assignee
Assign to
Time tracking