-
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
Fix keyboard navigation on the Image block toolbar #25127
Changes from all commits
35c46da
191e228
dfde4c7
734d3a9
1fd5a41
cdafb0e
6c5e5de
0daa4ba
d261eb3
b02f72d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,6 @@ | |
display: flex; | ||
|
||
.wp-block-template-part__name-panel { | ||
background-color: $white; | ||
outline: 1px solid transparent; | ||
padding: $grid-unit-10 0 $grid-unit-10 $grid-unit-15; | ||
|
||
|
@@ -79,10 +78,6 @@ | |
margin-right: 8px; | ||
} | ||
} | ||
|
||
.wp-block-template-part__preview-dropdown-button { | ||
border-right: $border-width solid $gray-900; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've updated the code to use |
||
} | ||
|
||
.is-navigate-mode .is-selected .wp-block-template-part__name-panel { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,11 +21,16 @@ | |
min-height: $block-toolbar-height; | ||
margin: 0; | ||
border: $border-width solid $gray-900; | ||
border-radius: $radius-block-ui; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was used in the legacy toolbar apparently to make toolbar groups rounded, but it seems that it's not needed anymore. |
||
background-color: $white; | ||
display: inline-flex; | ||
flex-shrink: 0; | ||
flex-wrap: wrap; | ||
|
||
// Unset for nested toolbars. Increase specificity. | ||
& .components-toolbar.components-toolbar { | ||
border-width: 0; | ||
margin: 0; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This snippet is already used in the new toolbar. This code also applies it to the legacy toolbar. |
||
} | ||
|
||
div.components-toolbar { | ||
|
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.
toggleProps
wasn't being passed to this component. That's why it wasn't being considered aToolbarItem
.