From fa62639400ccdfed6f4a35ad9973375c99e0c321 Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Tue, 23 Apr 2024 21:05:59 +0200 Subject: [PATCH] fix(dropdown): long/short variants were not working anymore #2883 broke specificity when a (very) long/short variant was used for a search selection dropdown (a pure selection dropdown was not affected --- src/definitions/modules/dropdown.less | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/definitions/modules/dropdown.less b/src/definitions/modules/dropdown.less index 37169e54b4..e902b14f10 100755 --- a/src/definitions/modules/dropdown.less +++ b/src/definitions/modules/dropdown.less @@ -468,10 +468,10 @@ select.ui.dropdown { @media only screen and (max-width: @largestMobileScreen) { & when (@variationDropdownShort) { - .ui.selection.dropdown.short .menu { + .ui.ui.selection.dropdown.short .menu { max-height: @selectionMobileMaxMenuHeight * 0.75; } - .ui.selection.dropdown[class*="very short"] .menu { + .ui.ui.selection.dropdown[class*="very short"] .menu { max-height: @selectionMobileMaxMenuHeight * 0.5; } } @@ -479,20 +479,20 @@ select.ui.dropdown { max-height: @selectionMobileMaxMenuHeight; } & when (@variationDropdownLong) { - .ui.selection.dropdown.long .menu { + .ui.ui.selection.dropdown.long .menu { max-height: @selectionMobileMaxMenuHeight * 2; } - .ui.selection.dropdown[class*="very long"] .menu { + .ui.ui.selection.dropdown[class*="very long"] .menu { max-height: @selectionMobileMaxMenuHeight * 3; } } } @media only screen and (min-width: @tabletBreakpoint) { & when (@variationDropdownShort) { - .ui.selection.dropdown.short .menu { + .ui.ui.selection.dropdown.short .menu { max-height: @selectionTabletMaxMenuHeight * 0.75; } - .ui.selection.dropdown[class*="very short"] .menu { + .ui.ui.selection.dropdown[class*="very short"] .menu { max-height: @selectionTabletMaxMenuHeight * 0.5; } } @@ -500,20 +500,20 @@ select.ui.dropdown { max-height: @selectionTabletMaxMenuHeight; } & when (@variationDropdownLong) { - .ui.selection.dropdown.long .menu { + .ui.ui.selection.dropdown.long .menu { max-height: @selectionTabletMaxMenuHeight * 2; } - .ui.selection.dropdown[class*="very long"] .menu { + .ui.ui.selection.dropdown[class*="very long"] .menu { max-height: @selectionTabletMaxMenuHeight * 3; } } } @media only screen and (min-width: @computerBreakpoint) { & when (@variationDropdownShort) { - .ui.selection.dropdown.short .menu { + .ui.ui.selection.dropdown.short .menu { max-height: @selectionComputerMaxMenuHeight * 0.75; } - .ui.selection.dropdown[class*="very short"] .menu { + .ui.ui.selection.dropdown[class*="very short"] .menu { max-height: @selectionComputerMaxMenuHeight * 0.5; } } @@ -521,20 +521,20 @@ select.ui.dropdown { max-height: @selectionComputerMaxMenuHeight; } & when (@variationDropdownLong) { - .ui.selection.dropdown.long .menu { + .ui.ui.selection.dropdown.long .menu { max-height: @selectionComputerMaxMenuHeight * 2; } - .ui.selection.dropdown[class*="very long"] .menu { + .ui.ui.selection.dropdown[class*="very long"] .menu { max-height: @selectionComputerMaxMenuHeight * 3; } } } @media only screen and (min-width: @widescreenMonitorBreakpoint) { & when (@variationDropdownShort) { - .ui.selection.dropdown.short .menu { + .ui.ui.selection.dropdown.short .menu { max-height: @selectionWidescreenMaxMenuHeight * 0.75; } - .ui.selection.dropdown[class*="very short"] .menu { + .ui.ui.selection.dropdown[class*="very short"] .menu { max-height: @selectionWidescreenMaxMenuHeight * 0.5; } } @@ -542,10 +542,10 @@ select.ui.dropdown { max-height: @selectionWidescreenMaxMenuHeight; } & when (@variationDropdownLong) { - .ui.selection.dropdown.long .menu { + .ui.ui.selection.dropdown.long .menu { max-height: @selectionWidescreenMaxMenuHeight * 2; } - .ui.selection.dropdown[class*="very long"] .menu { + .ui.ui.selection.dropdown[class*="very long"] .menu { max-height: @selectionWidescreenMaxMenuHeight * 3; } }