-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-inserting blocks: Add block icon to block inspector panel toggles (
#54029) Add block icons to block inspector panel toggle labels, and right-align the toggles.
- Loading branch information
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
16 changes: 16 additions & 0 deletions
16
packages/block-editor/src/hooks/auto-inserting-blocks.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.block-editor-hooks__auto-inserting-blocks { | ||
/** | ||
* Since we're displaying the block icon alongside the block name, | ||
* we need to right-align the toggle. | ||
*/ | ||
.components-toggle-control .components-h-stack { | ||
flex-direction: row-reverse; | ||
} | ||
|
||
/** | ||
* Un-reverse the flex direction for the toggle's label. | ||
*/ | ||
.components-toggle-control .components-h-stack .components-h-stack { | ||
flex-direction: row; | ||
} | ||
} |
This file contains 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