Skip to content

Commit

Permalink
Components: Fix UnitControl disabled style is overridden by WP form…
Browse files Browse the repository at this point in the history
…s.css (#45250)

* Conponents: Fix UnitControl disabled style is overridden by the core style

* Update changelog

* Update changelog
  • Loading branch information
t-hamano authored Oct 25, 2022
1 parent 4006cc4 commit 464788b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

### Bug Fix

- `UnitControl`: Fix `disabled` style is overridden by core `form.css` style ([#45250](https://github.com/WordPress/gutenberg/pull/45250)).
- `Button`: Fix RTL alignment for buttons containing an icon and text ([#44787](https://github.com/WordPress/gutenberg/pull/44787)).
- `TabPanel`: Call `onSelect()` on every tab selection, regardless of whether it was triggered by user interaction ([#44028](https://github.com/WordPress/gutenberg/pull/44028)).
- `FontSizePicker`: Fallback to font size `slug` if `name` is undefined ([#45041](https://github.com/WordPress/gutenberg/pull/45041)).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ const unitSelectSizes = ( { selectSize = 'default' }: SelectProps ) => {
};

export const UnitSelect = styled.select< SelectProps >`
// The && counteracts <select> styles in WP forms.css
&& {
// The &&& counteracts <select> styles in WP forms.css
&&& {
appearance: none;
background: transparent;
border-radius: 2px;
Expand Down

0 comments on commit 464788b

Please sign in to comment.