Repository navigation
Migrate pattern list item titles to Text from @wordpress/ui #77656
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
Merged
mirka
merged 7 commits into
WordPress:trunk
from
kushagra-goyal-14:refactor/migrate-experimantal-text-to-block-patterns-list
May 14, 2026
+7
−4
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5122efe
refactor: migrate title to use Text component from @wordpress/ui
kushagra-goyal-14 e423cd0
Merge branch 'trunk' into refactor/migrate-experimantal-text-to-block…
kushagra-goyal-14 f55ee04
fix: add div to the render tag as Text uses span by default
kushagra-goyal-14 c7b91cb
Merge branch 'trunk' into refactor/migrate-experimantal-text-to-block…
kushagra-goyal-14 3c65611
Merge branch 'trunk' into refactor/migrate-experimantal-text-to-block…
kushagra-goyal-14 53b183c
fix: update BlockPattern title rendering and adjust styles
kushagra-goyal-14 69e85e0
Merge branch 'trunk' into refactor/migrate-experimantal-text-to-block…
kushagra-goyal-14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this an ad hoc override, or a redundant font size style, or is the
Textvariant wrong?gutenberg/packages/block-editor/src/components/block-patterns-list/style.scss
Line 36 in e6c1d49
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.
Thanks for catching that @mirka . I checked both variants:
body-sm: 12px font-size, 16px line-height, removes CSS override entirely.body-md: would require keeping the CSS override, with 20px line-height.Since the original font styling was effectively 12px and the original height of the
divwas 18.2px, I am leaning towards body-sm for a clean look. Please share your thoughts if that works.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.
Yes, that makes sense.
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.
Thanks, made the changes.