-
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
Improve the EntitiesSavedStates modal dialog design and labeling #67792
base: trunk
Are you sure you want to change the base?
Conversation
Cc @jameskoster @WordPress/gutenberg-core |
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. |
Size Change: +305 B (+0.02%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
Yes, that's a feature / limitation of the Modal component. A potential change to introduce a sticky footer should be considered at the component's level. |
@jameskoster any other style refining you would like to see implemented? |
5cc1825
to
fb435f8
Compare
Flaky tests detected in fb435f8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12273581708
|
It does seem a bit loose on the spacing, but it's unclear that needs to be a blocker. Probably worth getting this into the plugin, and gathering feedback through that channel, and then spacing polish can happen separately at any time, whether locally or component level. |
Re: the
It's a one-line change, I'd agree it can happen at any time if need be. |
For me the small modal works better, just because it feels more like the UI we're familiar with. Not a blocker though. As long as we use one of the defined modal sizes I'm happy. |
Sure. In the latest commit I made the modal dialog small so that everyone can try it and see how it looks on different viewport sizes. Cc @WordPress/gutenberg-design |
I agree with keeping the same spacing approach consistent with its version in the site editor. Regarding follow-up improvements, I see room for improvement in adding an indentation level in the bullet points and reducing the spacing between the checkbox and the bullet list. If I understand this correctly, more checkboxes can show up and placing the bullet list at the control label could improve the text relationship between what users are about to update and what that includes. This suggestion is for both modal and the inspector panel. |
Good point about the indentation. I'd like to see the list items text aligned with the checkbox label, with the bullets following the principle of the hanging punctuation: |
38c8ef8
to
6a5e038
Compare
6a5e038
to
cd71c4b
Compare
Since we're discussing refinements, I have two questions:
|
The screenshot looks good to me 👍
Wow. TIL there was a word for that alignment. Thanks |
Sorry. My previous comment was on this message. It seems we pressed the "comment" button almost at the same time. Regarding your suggestions for font size and text color, I second your rationale and agree with the changes. |
Fixes #49832
Fixes #67354
Note: if this gets merged, please add props to @dhruvang21 for the alternative PR #67473
What?
The modal dialog to save entities reuses the
EntitiesSavedStates
component 'as is'. This isn't ideal in terms oc content order, styling, and accessibility because modal dialogs expecte their content in a more meaningful order, with a visible title, specific styling and appropriate labeling and description.Why?
How?
isWithinModalDialog
prop toEntitiesSavedStates
and its variant to distinguish when this component is used within a modal dialog.Testing Instructions
Saving your changes will change your active theme from Twenty Twenty-Four to Twenty Twenty-Five.
There are 2 site changes waiting to be saved.
Are you ready to save?
Screenshot to illustrate the labeling / description:
Testing Instructions for Keyboard
Screenshots or screencast