-
Notifications
You must be signed in to change notification settings - Fork 4.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
Edit Post: Improve distraction-free mode notices #45348
Conversation
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
{ | ||
speak: true, | ||
id: 'core/edit-post/distraction-free-mode/notice', |
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 can be only one notice with the same ID" - Highlander
{ | ||
speak: 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.
The snackbars are announced by default; there was no need for this option.
Size Change: -29 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
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.
Very nice 😄
Thanks for testing, Dan 🙇 |
What?
PR contains the following improvements for the "Distraction Free" mode notice:
id
for notice to avoid flooding the screen with snackbars if you toggle the mode multiple times.sprintf
. Since we already know both strings, let's use them. It should make translation easier in some languages.Testing Instructions
Screenshots or screencast