-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[TextField] delete irrelevant default numeric-range props, prevent unconditional aria-invalid='false' #2339
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
[TextField] delete irrelevant default numeric-range props, prevent unconditional aria-invalid='false' #2339
Conversation
👋 Thanks for opening your first pull request. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. |
020cb8f
to
d83980e
Compare
630c18e
to
8fe58ce
Compare
const normalizedStep = step != null ? step : 1; | ||
const normalizedMax = max != null ? max : Infinity; | ||
const normalizedMin = min != null ? min : -Infinity; | ||
|
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.
const normalizedMin = min != null ? min : -Infinity; | ||
|
||
const {unstableGlobalTheming = false} = useFeatures(); | ||
|
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.
Thank you for doing this @AlexCLeduc! There was a conflict I tried to resolve using Github but it introduced formatting issues in ci. Ping me when those are updated and I'll approve. |
ed7d359
to
7621636
Compare
Thanks @dleroux! I've just rebased over master |
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.
🎉 Thanks agiain @AlexCLeduc
🎉 Thanks for your contribution to Polaris React! |
WHY are these changes introduced?
Fixes #2282. I made a single PR because it was one issue, but maybe it should be split in two
WHAT is this pull request doing?
max
,min
,step
so they no longer show up in markup unless explicitly passedaria-invalid="false"
from being rendered when there is no error