From 07a60ca0ea0e3215762f12732fe6912fe9aed4fc Mon Sep 17 00:00:00 2001 From: Jan Hassel Date: Fri, 15 Nov 2024 15:20:22 +0100 Subject: [PATCH] fix(inline-dropdown): remove unnecessary column with props.hideLabel (#18014) * fix(inline-dropdown): remove unnecessary column with props.hideLabel * chore(prettier): format code --------- Co-authored-by: Kenny Lam <909118+kennylam@users.noreply.github.com> --- packages/styles/scss/components/dropdown/_dropdown.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/styles/scss/components/dropdown/_dropdown.scss b/packages/styles/scss/components/dropdown/_dropdown.scss index 1e82398476f8..5e484bb47a61 100644 --- a/packages/styles/scss/components/dropdown/_dropdown.scss +++ b/packages/styles/scss/components/dropdown/_dropdown.scss @@ -29,6 +29,10 @@ grid-gap: 0 convert.to-rem(24px); grid-template: auto / auto min-content; + &:has(.#{$prefix}--label.#{$prefix}--visually-hidden) { + grid-template: auto / auto; + } + .#{$prefix}--label { @include type-style('body-compact-01'); }