-
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
Follow up design tweaks for global styles presets #60031
Conversation
Size Change: +409 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
packages/edit-site/src/components/global-styles/variations/style.scss
Outdated
Show resolved
Hide resolved
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @sahiladit. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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. |
This readds the "Presets" heading, I assume that is intentional? |
This comment was marked as off-topic.
This comment was marked as off-topic.
You need to fork the repo, and then create a new branch on your fork. There's a lot more detail here: https://github.com/WordPress/gutenberg/blob/c1032abaf71e86f0effe13a181ba189c083f98ef/docs/contributors/code/README.md |
|
||
export default function TypographyVariations() { | ||
export default function TypographyVariations( { title, gap = 2 } ) { |
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.
I'm not super keen on adding gap as a prop. Style variations have a gap of 3 in both contexts, so I'd rather keep that for consistency and simplicity.
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.
Style variations have a gap of 3 in both contexts, so I'd rather keep that for consistency and simplicity.
They shouldn't though. In the smaller context of the Inspector, the gap should be 2
, but in the wider context of the dark material, they need a gap of 3
.
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.
If you have another idea to achieve the same result, I'm open to it.
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.
I updated the styles tiles to use a gap of 3 in site view.
Yes. After testing without it I think it's fine to include. Perhaps we can come up with a better solution and revisit, but for now this puts us in a good spot. I had this in mind, which works ok for colors—but not so much for typography. |
Flaky tests detected in 068cdf8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8378044486
|
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 looks good to me. Let's bring it in.
* Update ColorToolsPanel to "Elements" H3 * Improve copy and spacing on "colors" screen * Tweak HighlightedColors size and spacing * Tweak palette count visual and empty state copy * Tweak styles * Add "Presets" subtitle, adjust grid * Tweaks * Add back 'custom' * Adjust spacing of font families * Adjust subtitles * Use $border-width * Linting * Fix consistent margin top * remove unused styles * Remove duplicate VStack * Add reduce-motion and comments for box shadow transitions * also set the gap on the style variation component * use a generic class for shared styles --------- Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: scruffian <scruffian@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: MaggieCabrera <onemaggie@git.wordpress.org>
What?
A follow-up to #56622, in support of #56604.
Fixes #59948
Testing Instructions
Screenshots or screencast