Skip to content

Commit 329ba72

Browse files
devongovettsnowystingerdannify
authored
Ensure that changing the selected item doesn't affect the size of the Picker (#334)
Co-authored-by: Robert Snow <rsnow@adobe.com> Co-authored-by: Danni <drobinson@livefyre.com>
1 parent 486ed7c commit 329ba72

File tree

1 file changed

+3
-0
lines changed
  • packages/@adobe/spectrum-css-temp/components/dropdown

1 file changed

+3
-0
lines changed

packages/@adobe/spectrum-css-temp/components/dropdown/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ governing permissions and limitations under the License.
2727
inline-size: var(--spectrum-dropdown-width);
2828
min-inline-size: var(--spectrum-dropdown-min-width);
2929

30+
/* Ensure that changing the selected item doesn't affect the size of the dropdown and its parents */
31+
contain: size;
32+
3033
/* Hack to enable select-powered Dropdowns */
3134
select {
3235
appearance: none;

0 commit comments

Comments
 (0)