-
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
Global Styles: Make a shared component for typography and color preview #62829
Conversation
Size Change: -11.7 kB (-0.66%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
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. |
7425688
to
4d618b2
Compare
There's a stray |
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 code looks good to me and it's working as intended
packages/edit-site/src/components/global-styles/variations/variations-typography.js
Outdated
Show resolved
Hide resolved
…ew (WordPress#62829) * Global Styles: Make a shared component for typography and color preview * remove null check that has already happened Co-authored-by: scruffian <scruffian@git.wordpress.org> Co-authored-by: MaggieCabrera <onemaggie@git.wordpress.org> Co-authored-by: jeryj <jeryj@git.wordpress.org>
What?
Use the same approach to display typography variations that we use for color variations.
Why?
If we use a similar approach to display these presets it will be easier to update them to have shared components. This will be possible once #62827 is merged.
How?
Creates a new
StylesPreviewTypography
component similar toStylesPreviewColors
.Testing Instructions