-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Snackbar: Make the explicitDismiss
string translatable
#60368
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Introduced in #26952 |
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 for catching the issue, @afercia!
Noting the copy should likely be "Dismiss notice". Short, direct commands tend to be easier for users to scan and understand quickly. This phrasing still conveys the essential action without unnecessary words, maintaining clarity and effectiveness. |
Sorry, I have no clue regarding the PHP test failure. |
Unrelated to this PR, anyways a good opportunity to clarify a couple things:
It's important to understand the technologies and devices we have to design for. Anyways, the Snackbar notices would need some important work to be fully accessible that has been discussed at length when they were introduced but no agreement was reached. In my personal opinion, while snaclbars may be a good pattern for small screen devices, they are less than ideal for large screens at the point I would like to see them entirely removed from WordPress. That said, this PR only aims to fix a non-translatable string. Broader discussions should go in a separate issue. |
52bce86
to
cf64527
Compare
Co-authored-by: afercia <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: richtabor <[email protected]>
Submitting this PR without an associated issue because this is a trivial change that doesn't need a broader discussion.
What?
When snackbars have the
explicitDismiss
prop set to true, they show an X close button. The button aria-label is not translatable, it's a hardcoded string.Why?
All user facing text, including non-visible ARIA properties, should be translatable.
How?
Makes the string translatable.
Testing Instructions
N/A
Testing Instructions for Keyboard
Screenshots or screencast