Skip to content

Fixed disabled text styles in Safari (and iOS) - #4538

Merged
cchaos merged 2 commits into
elastic:masterfrom
cchaos:fix/disabled_safari_inputs
Feb 18, 2021
Merged

cchaos merged 2 commits into
elastic:masterfrom
cchaos:fix/disabled_safari_inputs

Conversation

@cchaos

@cchaos cchaos commented Feb 17, 2021 •

Copy link
Copy Markdown
Contributor

@gjones Brought to our attention that the text of filled, disabled inputs on Safari did not have proper contrast. Apparently, in Safari, there is a special -webkit- prefix for applying color to disabled text of inputs. ☹️

So based on this SO, I've forced opacity (for iOS) in the reset files, then applied the disabled text color in the Sass mixin to the -webkit- prefix.

Before
Screen Recording 2021-02-17 at 04 54 57 PM

After
Screen Recording 2021-02-17 at 04 52 20 PM

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • [ ] Props have proper autodocs and playground toggles
  • [ ] Added documentation
  • [ ] Checked Code Sandbox works for the any docs examples
  • [ ] Added or updated jest tests
  • [ ] Checked for breaking changes and labeled appropriately
  • [ ] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@kibanamachine

Copy link
Copy Markdown
Contributor

@cchaos cchaos changed the title Fixed disabled text styles in Safari (and iOS?) Fixed disabled text styles in Safari (and iOS) Feb 17, 2021

@chandlerprall chandlerprall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM!

@cchaos
cchaos merged commit 7c3e400 into elastic:master Feb 18, 2021
@cchaos
cchaos deleted the fix/disabled_safari_inputs branch February 18, 2021 18:38
anuragxxd added a commit to anuragxxd/eui that referenced this pull request Feb 18, 2021
Fixed disabled text styles in Safari (and iOS) (elastic#4538)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants