Skip to content

Commit

Permalink
[core] fix: improve contrast for disabled inputs in iOS (#5641)
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Duczynski <mduczynski@palantir.com>
  • Loading branch information
mduczek and Michal Duczynski committed Oct 5, 2022
1 parent 9eeeeb8 commit 66df5d6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/core/src/components/forms/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,23 @@ Styleguide input
}
}

// for iOS support
@supports (-webkit-touch-callout: none) {
// only html input elements require a fix on iOS
input.#{$ns}-input {
&:disabled,
&.#{$ns}-disabled {
opacity: 1;
-webkit-text-fill-color: $input-color-disabled;

.#{$ns}-dark & {
-webkit-text-fill-color: $dark-input-color-disabled;
}
}
}
}


/*
Search inputs
Expand Down

1 comment on commit 66df5d6

@blueprint-bot
Copy link

Choose a reason for hiding this comment

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

[core] fix: improve contrast for disabled inputs in iOS (#5641)

Previews: documentation | landing | table | demo

Please sign in to comment.