Skip to content

Commit

Permalink
CustomSelectControl V2: fix trigger button font size (WordPress#63131)
Browse files Browse the repository at this point in the history
* CustomSelectControl V2 legacy adapter: fix trigger button font size

* CHANGELOG

--- 

Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored Jul 4, 2024
1 parent b21a807 commit 32f12ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- `CustomSelectControlV2`: allow wrapping item hint to new line ([#62848](https://github.com/WordPress/gutenberg/pull/62848)).
- `CustomSelectControlV2`: fix select popover content overflow. ([#62844](https://github.com/WordPress/gutenberg/pull/62844))
- `CustomSelectControlV2`: keep legacy arrow down behavior only for legacy wrapper. ([#62919](https://github.com/WordPress/gutenberg/pull/62919))
- `CustomSelectControlV2`: fix trigger button font size. ([#63131](https://github.com/WordPress/gutenberg/pull/63131))
- Extract `TimeInput` component from `TimePicker` ([#60613](https://github.com/WordPress/gutenberg/pull/60613)).
- `TimeInput`: Add `label` prop ([#63106](https://github.com/WordPress/gutenberg/pull/63106)).

Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/custom-select-control-v2/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import styled from '@emotion/styled';
import { COLORS, CONFIG } from '../utils';
import { space } from '../utils/space';
import { chevronIconSize } from '../select-control/styles/select-control-styles';
import { fontSizeStyles } from '../input-control/styles/input-control-styles';
import type { CustomSelectButtonSize } from './types';

const INLINE_PADDING = {
Expand Down Expand Up @@ -91,7 +92,6 @@ export const Select = styled( Ariakit.Select, {
color: ${ COLORS.theme.foreground };
cursor: pointer;
font-family: inherit;
font-size: ${ CONFIG.fontSize };
text-align: start;
user-select: none;
width: 100%;
Expand All @@ -102,6 +102,7 @@ export const Select = styled( Ariakit.Select, {
${ getSelectSize( size, hasCustomRenderProp ? 'minHeight' : 'height' ) }
${ ! hasCustomRenderProp && truncateStyles }
${ fontSizeStyles( { inputSize: size } ) }
`
);

Expand Down

0 comments on commit 32f12ad

Please sign in to comment.