-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[TextField] Fix disabled text color in Safari #4344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1470fe9 to
da983fa
Compare
size-limit report
|
da983fa to
1b8b2ab
Compare
nicolleromero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey folks, sorry to block (not sure what your conventions are when reviewing :) ), but this is what I saw in Safari on desktop and mobile (all other browsers checked out ok):
Here's the exact list of steps I followed:
-
dev clone polaris-react -
dev u -
Added the following code to the
playground/Playground.tsxfileimport React from 'react'; import {Page, TextField} from '../src'; export function Playground() { return ( <Page title="Playground"> <TextField disabled label="some value" value="some value" onChange={(value) => console.log(value)} /> </Page> ); }
-
yarn dev -
go to http://192.168.86.105:6006/?path=/story/playground-playground--playground in Safari
Maybe I missed something? Let me know if I can help further :)
|
Looks like you might have missed |
adriancorcoran
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.


WHY are these changes introduced?
Fixes #182
WHAT is this pull request doing?
I think webkit overrides the color value of disabled inputs. We were using current color here before because I think legacy Polaris had different colors for different disabled states i.e. error. Now they're all using
--p-text-disabledHow to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx:🎩 checklist
README.mdwith documentation changes