-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Editor: Unify show icon labels preference #57480
Conversation
Size Change: +50 B (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
4995ed5
to
c5309a5
Compare
429a995
to
587c7d6
Compare
Rebased and added the migration here too. |
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!
( select ) => { | ||
export default function PostViewLink() { | ||
const { hasLoaded, permalink, isPublished, label, showIconLabels } = | ||
useSelect( ( select ) => { |
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.
It's really interesting to see in how many components we were passing this prop down..
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.
yep, good cleanup
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
Related #52632
Similar to #57468
What?
This PR continues the work on the great unification between post and site editors. In this PR we're unifying the "Show button text labels" preference. If the user enables it in the post editor, the setting should be used in the site editor as well.
Testing instructions
Show button text labels" preference in the post editor (toggle the checkbox in the preferences -> accessibility panel)