-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce a default icon size to allow flex alignment + fix unaligned l…
…abels (#9828) * Enforce a default icon size to allow flex alignment + fix unaligned text * Further unify transform icons * Reset block icon margin to 0 and modify contextually in all cases * Remove an unnecessary newline * add minimum size on block icons and inline docs * Use flexbox to position dropdown-arrow mixin * chore: Tweak comments
- Loading branch information
1 parent
b1d9fb7
commit 9cc0a9a
Showing
8 changed files
with
44 additions
and
28 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
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
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
.editor-autocompleters__block { | ||
svg, | ||
.dashicon { | ||
.editor-block-icon { | ||
margin-right: 8px; | ||
} | ||
} | ||
|
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
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 |
---|---|---|
@@ -1,16 +1,27 @@ | ||
.editor-block-icon { | ||
display: inline-block; | ||
border-radius: 4px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 24px; | ||
height: 24px; | ||
margin: 0; | ||
border-radius: 4px; | ||
|
||
&.has-colors { | ||
svg { | ||
fill: currentColor; | ||
} | ||
} | ||
|
||
svg:not(.dashicon) { | ||
height: 24px; | ||
width: 24px; | ||
// Icons with width/height attributes below 20px will be sized up to 20px, | ||
// and icons with width/height attributes above 24px will be sized down to | ||
// 24px. Icons with width/height >=20px and <=24px will display at the | ||
// indicated size. | ||
// See: https://github.com/WordPress/gutenberg/pull/9828 | ||
svg { | ||
min-width: 20px; | ||
min-height: 20px; | ||
max-width: 24px; | ||
max-height: 24px; | ||
} | ||
} |
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
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
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