-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix: always show date select #3948
Conversation
kelatev
commented
Feb 24, 2023
•
edited
Loading
edited
Please merge this ASAP. We are seeing this unexpected selected date on UI |
Codecov Report
@@ Coverage Diff @@
## master #3948 +/- ##
==========================================
- Coverage 94.09% 93.96% -0.13%
==========================================
Files 20 20
Lines 1726 1890 +164
Branches 419 458 +39
==========================================
+ Hits 1624 1776 +152
- Misses 31 40 +9
- Partials 71 74 +3
|
Can you provide more information on the change? |
|
this.setState({ isRenderAriaLiveMessage: true }); | ||
if (this.props.showDateSelect) { | ||
this.setState({ isRenderAriaLiveMessage: true }); | ||
} |
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 we adding this behind a prop?
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.
this.setState({ isRenderAriaLiveMessage: true });
run in func handleSelect
without check for need to renderAriaLiveMessage
Any change date on datepicker run handleSelect
and always set isRenderAriaLiveMessage: true
This code fix that. set isRenderAriaLiveMessage: true
only if developer set prop showDateSelect
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.
✅ This pull request was sent to the PullRequest network.
@kelatev you can click here to see the review status or cancel the code review job.
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.
PullRequest Breakdown
Reviewable lines of change
+ 9
- 5
71% JavaScript
29% JavaScript (tests)
Type of change
Fix - These changes are likely to be fixing a bug or issue.
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.
Nice work here. I have just one concern left inline as a reply to another comment.
Reviewed with ❤️ by PullRequest
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.
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.
Looks to ensure that the right checks are made related to showing the date selector as described in the PR description. I see no issues to moving this forward
Reviewed with ❤️ by PullRequest
Do I understand right that this change removed aria announcements unless you opt in with the new input? Was this change made based on a misunderstanding of this issue? (the correct solution is to add the CSS styles mentioned in that conversation or import the css styles mentioned in the readme) If the CSS class is causing too much difficulty, maybe inline styles for the aria live announcement would be a better approach? (I can make a PR for that if people think it makes sense) |