diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 0abb1b79050eba..211a4f66f48035 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -22,6 +22,7 @@ - `UnitControl`: Fix an issue where keyboard shortcuts unintentionally shift focus on Windows OS. ([#62988](https://github.com/WordPress/gutenberg/pull/62988)) - Fix inaccessibly disabled `Button`s ([#62306](https://github.com/WordPress/gutenberg/pull/62306)). - `TimePicker`: Fix time zone overflow ([#63209](https://github.com/WordPress/gutenberg/pull/63209)). +- `SelectControl`: Fix disabled styles ([#63266](https://github.com/WordPress/gutenberg/pull/63266)). - `Tabs`: Fix text-align when text wraps in vertical mode ([#63272](https://github.com/WordPress/gutenberg/pull/63272)). ### Internal diff --git a/packages/components/src/dimension-control/test/__snapshots__/index.test.js.snap b/packages/components/src/dimension-control/test/__snapshots__/index.test.js.snap index 608cadbcf544f2..1d3cd12a2aa316 100644 --- a/packages/components/src/dimension-control/test/__snapshots__/index.test.js.snap +++ b/packages/components/src/dimension-control/test/__snapshots__/index.test.js.snap @@ -21,7 +21,7 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` margin-bottom: inherit; } -.emotion-5 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -41,20 +41,22 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` position: relative; border-radius: 2px; padding-top: 0; + color: var(--wp-components-color-foreground, #1e1e1e); + cursor: pointer; } -.emotion-5>* { +.emotion-6>* { min-height: 0; } -.emotion-5:focus-within:not( :has( :is( .em5sgkm7, .emotion-18 ):focus-within ) ) .emotion-25 { +.emotion-6:focus-within:not( :has( :is( .em5sgkm7, .emotion-19 ):focus-within ) ) .emotion-26 { border-color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); box-shadow: 0 0 0 0.5px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); outline: 2px solid transparent; outline-offset: -2px; } -.emotion-8 { +.emotion-9 { display: block; max-height: 100%; max-width: 100%; @@ -64,7 +66,7 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` max-width: calc( 100% - 10px ); } -.emotion-11 { +.emotion-12 { color: #1e1e1e; line-height: 1.4; margin: 0; @@ -74,7 +76,7 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` font-weight: normal; } -.emotion-11.emotion-11.emotion-11 { +.emotion-12.emotion-12.emotion-12 { font-size: 11px; font-weight: 500; line-height: 1.4; @@ -90,7 +92,7 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` white-space: nowrap; } -.emotion-13 { +.emotion-14 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -109,7 +111,7 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` width: 100%; } -.emotion-15.emotion-15.emotion-15 { +.emotion-16.emotion-16.emotion-16 { -webkit-appearance: none; -moz-appearance: none; -ms-appearance: none; @@ -118,13 +120,12 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` box-sizing: border-box; border: none; box-shadow: none!important; - color: #1e1e1e; + cursor: inherit; display: block; font-family: inherit; margin: 0; width: 100%; max-width: none; - cursor: pointer; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; @@ -138,12 +139,12 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` } @media ( min-width: 600px ) { - .emotion-15.emotion-15.emotion-15 { + .emotion-16.emotion-16.emotion-16 { font-size: 13px; } } -.emotion-17 { +.emotion-18 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -158,7 +159,7 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` display: flex; } -.emotion-20 { +.emotion-21 { margin-bottom: 0; padding-right: calc(4px * 2); position: absolute; @@ -166,13 +167,17 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` right: 0; } -.emotion-22 { +.emotion-23 { -webkit-margin-end: calc(4px * -1); margin-inline-end: calc(4px * -1); line-height: 0; } -.emotion-24.emotion-24.emotion-24 { +.emotion-23 path { + fill: currentColor; +} + +.emotion-25.emotion-25.emotion-25 { box-sizing: border-box; border-color: var(--wp-components-color-gray-600, #949494); border-radius: inherit; @@ -197,17 +202,17 @@ exports[`DimensionControl rendering renders with custom sizes 1`] = ` class="components-base-control__field emotion-2 emotion-3" >