-
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
fix: Display heading level dropdown icons and labels #52004
fix: Display heading level dropdown icons and labels #52004
Conversation
A recent refactor for web was only partially applied to the sibling native files. This finishes the application so that the active selection is displayed, passed through via the `value` prop.
Without using Icon, the SVG elements rendered without a width, causing layout issues and invisible icons.
packages/block-editor/src/components/block-heading-level-dropdown/heading-level-icon.js
Show resolved
Hide resolved
Size Change: +3 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
controls={ HEADING_LEVELS.map( ( index ) => | ||
createLevelControl( index, selectedLevel, onChange ) | ||
icon={ <HeadingLevelIcon level={ value } /> } | ||
controls={ options.map( ( index ) => |
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 is embarrassing, thank you.
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.
LGTM! Thanks for fixing this regression 🚀 Tested the changes using the demo app on both iOS and Android.
Flaky tests detected in d79e92b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5396932202
|
* fix: Heading level dropdown displays active selection A recent refactor for web was only partially applied to the sibling native files. This finishes the application so that the active selection is displayed, passed through via the `value` prop. * fix: Heading level dropdown leverages Icon Without using Icon, the SVG elements rendered without a width, causing layout issues and invisible icons.
* Release script: Update react-native-editor version to 1.98.0 * Release script: Update with changes from 'npm run core preios' * docs: Add change log entry * Release script: Update react-native-editor version to 1.98.1 * Release script: Update with changes from 'npm run core preios' * fix: Display heading level dropdown icons and labels (#52004) * fix: Heading level dropdown displays active selection A recent refactor for web was only partially applied to the sibling native files. This finishes the application so that the active selection is displayed, passed through via the `value` prop. * fix: Heading level dropdown leverages Icon Without using Icon, the SVG elements rendered without a width, causing layout issues and invisible icons. * docs: Add change log entry * build: Capture Pod changes after trunk merge
* fix: Heading level dropdown displays active selection A recent refactor for web was only partially applied to the sibling native files. This finishes the application so that the active selection is displayed, passed through via the `value` prop. * fix: Heading level dropdown leverages Icon Without using Icon, the SVG elements rendered without a width, causing layout issues and invisible icons.
Related PRs
What?
Fix the heading level dropdown menu to display the active selection, as well as
icons and labels for all options.
Why?
Fixes #51996. The heading level dropdown was near-impossible to use due to its
broken state.
How?
fix: Heading level dropdown displays active selection
A recent refactor for web was only partially applied to the sibling
native files. This finishes the application so that the active selection
is displayed, passed through via the
value
prop.Move HeadinglevelDropdown to its own component #46003
fix: Heading level dropdown leverages Icon
Without using Icon, the SVG elements rendered without a width, causing
layout issues and invisible icons.
Testing Instructions
H2
icon).Testing Instructions for Keyboard
n/a
Screenshots or screencast
See #51996.