-
Notifications
You must be signed in to change notification settings - Fork 812
Improve accessibility, fixes #359 #570
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
bd5e012
to
a6473ca
Compare
I've updated the readme as well |
a6473ca
to
ce9ce75
Compare
Also fixed prettier issues |
ce9ce75
to
7c36750
Compare
also satisfied eslint |
Fantastic! I have to finish the review later, but I'll make sure we release this ASAP. |
Running some tests, everything looks great. The only question I have is making
We could write a log message, on dev mode, explaining why not defining Any thoughts? |
7c36750
to
4879c5b
Compare
- adds aria-modal="true" to modal portal - doesn't make body a default appElement - warns if appElement is not set in any way
4879c5b
to
968e992
Compare
@diasbruno I didn't make setAppElement required. I just show a warning if it's not set. I also updates PR so it doesn't show warning in production, tells how to opt-out with ariaHideApp and tells why setting this is necessary for accessibility. The message says now:
|
Oh, ok...what about the second part (don't set |
@diasbruno As I said it's not a breaking change as it only shows a warning, and only in development. |
Ah, ok. It will be |
Sorry, I wasn't paying attention to this case. I was think on something more explicit like |
There is:
but feel free to change it (this PR is editable by you). It seems artificial to me to pass ariaHideApp variable to show/hide, just to do simple |
Thank you so much @sheerun! |
Release |
Fixes #359
Acceptance Checklist:
Unnecesary rule: You can squash with button when merging
CONTRIBUTING.md
.Unnecessary rule: You can edit commit message as well :)