Skip to content
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

Update InputControl and SelectControl default heights #55490

Merged
merged 7 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Enhancements

- `InputControl`/`SelectControl`: update `height`/`min-height` to `32px` instead of `30px` to align with modern sizing scale ([#55490](https://github.com/WordPress/gutenberg/pull/55490)).

### Bug Fix

- `Autocomplete`: Add `aria-live` announcements for Mac and IOS Voiceover to fix lack of support for `aria-owns` ([#54902](https://github.com/WordPress/gutenberg/pull/54902)).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = `
white-space: nowrap;
text-overflow: ellipsis;
font-size: 16px;
height: 30px;
min-height: 30px;
height: 32px;
min-height: 32px;
padding-top: 0;
padding-bottom: 0;
padding-left: 8px;
Expand Down Expand Up @@ -390,8 +390,8 @@ exports[`DimensionControl rendering renders with defaults 1`] = `
white-space: nowrap;
text-overflow: ellipsis;
font-size: 16px;
height: 30px;
min-height: 30px;
height: 32px;
min-height: 32px;
padding-top: 0;
padding-bottom: 0;
padding-left: 8px;
Expand Down Expand Up @@ -671,8 +671,8 @@ exports[`DimensionControl rendering renders with icon and custom icon label 1`]
white-space: nowrap;
text-overflow: ellipsis;
font-size: 16px;
height: 30px;
min-height: 30px;
height: 32px;
min-height: 32px;
padding-top: 0;
padding-bottom: 0;
padding-left: 8px;
Expand Down Expand Up @@ -964,8 +964,8 @@ exports[`DimensionControl rendering renders with icon and default icon label 1`]
white-space: nowrap;
text-overflow: ellipsis;
font-size: 16px;
height: 30px;
min-height: 30px;
height: 32px;
min-height: 32px;
padding-top: 0;
padding-bottom: 0;
padding-left: 8px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ export const getSizeConfig = ( {

if ( ! __next40pxDefaultSize ) {
sizes.default = {
height: 30,
height: 32,
lineHeight: 1,
minHeight: 30,
minHeight: 32,
paddingLeft: space( 2 ),
paddingRight: space( 2 ),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ const sizeStyles = ( {

if ( ! __next40pxDefaultSize ) {
sizes.default = {
height: 30,
minHeight: 30,
height: 32,
minHeight: 32,
paddingTop: 0,
paddingBottom: 0,
};
Expand Down
Loading