Skip to content

Commit

Permalink
fix(dropdown): long/short variants were not working anymore
Browse files Browse the repository at this point in the history
#2883 broke specificity when a (very) long/short variant was used for a search selection dropdown (a pure selection dropdown was not affected
  • Loading branch information
lubber-de authored Apr 23, 2024
1 parent 28e0212 commit fa62639
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/definitions/modules/dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -468,84 +468,84 @@ 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;
}
}
.ui.selection.dropdown:not(.unlimited) .menu {
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;
}
}
.ui.selection.dropdown:not(.unlimited) .menu {
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;
}
}
.ui.selection.dropdown:not(.unlimited) .menu {
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;
}
}
.ui.selection.dropdown:not(.unlimited) .menu {
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;
}
}
Expand Down

0 comments on commit fa62639

Please sign in to comment.