Admin UI: use UI Text component in header#77372
Conversation
|
Size Change: +1.19 kB (+0.02%) Total Size: 7.82 MB 📦 View Changed
ℹ️ View Unchanged
|
ec81749 to
cfdd827
Compare
|
@mirka @ciampo @aduth FYI I'm still seeing
|
| z-index: 1; | ||
| } | ||
|
|
||
| // @TODO: Remove truncation styles once `Text` supports truncation natively. |
There was a problem hiding this comment.
There was a problem hiding this comment.
Nit: we could leave a link to #77391 in the code comment here, and everywhere applicable.
|
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. |
|
Flaky tests detected in 07dd496. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/25048062184
|
We're currently only injecting heading defense styles when the variant is gutenberg/packages/ui/src/text/text.tsx Line 23 in 7991839 |
It was just for styling reasons; I was copying what was in the breadcrumbs PR, but actually, now I see we have a mix of body-lg and heading-lg there. Switching to heading in 9f31f7a Heading is a bit heavier, but assuming it's ok. FYI @jameskoster |
|
Right, |
|
I've also addressed it at the component level in #77461. |
| z-index: 1; | ||
| } | ||
|
|
||
| // @TODO: Remove truncation styles once `Text` supports truncation natively. |
There was a problem hiding this comment.
Nit: we could leave a link to #77391 in the code comment here, and everywhere applicable.
9f31f7a to
07dd496
Compare
* Admin UI: use UI Text component in header * Correct size * Update CHANGELOG.md * Remove unneeded margin reset * Add todo * Use heading-lg instead of body-lg * Update todo with a link --- Co-authored-by: simison <simison@git.wordpress.org> Co-authored-by: aduth <aduth@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org> Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>


What?
Why?
TextUI component directly instead of design tokens via CSS.typography-*styles and margin reset, which also isn't needed now.How?
Testing Instructions
You should not notice any visual differences.
Testing Instructions for Keyboard
Screenshots or screencast
Use of AI Tools