-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to the Font Size Picker (#9802)
* Rework font-size selection to improve clarity of options and the UI. * Add label, relax margins, tighten help text for switch, fix color This commit does a few things: 1. It makes the panel heading the same color as the down chevron. 2. It adds a label to the font size picker, grouping it all together 3. It tightens the margins between switch and contextual help text. 4. It relaxes the margins for base controls inside panels, to make them a bit lighter. Together with #9784 it reduces the weight of panels in the sidebar. * Tweak the reset button, make it disabled until a number is input. * Fix reset clearing input value. * Use different sizes for buttons and render. * Convert font picker to a dropdown select showing real visual sizes. - Add "huge" and "normal" variants. - Normal equals a "reset". * Remove unusued CSS code. * FontSizePicker: a11y: Wrap with NavigableMenu * e2e: Update to accommodate new font size picker * Amend editor-modes test * Accessibility improvements to the FontSizePicker component
- Loading branch information
1 parent
579f584
commit e5ed1b1
Showing
9 changed files
with
177 additions
and
62 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
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,22 +1,23 @@ | ||
.components-base-control { | ||
font-family: $default-font; | ||
font-size: $default-font-size; | ||
} | ||
|
||
.components-base-control__field { | ||
margin-bottom: $grid-size; | ||
.components-base-control__field { | ||
margin-bottom: $grid-size; | ||
|
||
.components-panel__row & { | ||
margin-bottom: inherit; | ||
.components-panel__row & { | ||
margin-bottom: inherit; | ||
} | ||
} | ||
} | ||
|
||
.components-base-control__label { | ||
display: block; | ||
margin-bottom: $grid-size-small; | ||
} | ||
.components-base-control__label { | ||
display: block; | ||
margin-bottom: $grid-size-small; | ||
} | ||
|
||
.components-base-control__help { | ||
font-style: italic; | ||
margin-bottom: 0; | ||
.components-base-control__help { | ||
margin-top: -$grid-size; | ||
font-style: italic; | ||
margin-bottom: 0; | ||
} | ||
} |
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
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