Skip to content

Commit fa62639

Browse files
authored
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
1 parent 28e0212 commit fa62639

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/definitions/modules/dropdown.less

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -468,84 +468,84 @@ select.ui.dropdown {
468468

469469
@media only screen and (max-width: @largestMobileScreen) {
470470
& when (@variationDropdownShort) {
471-
.ui.selection.dropdown.short .menu {
471+
.ui.ui.selection.dropdown.short .menu {
472472
max-height: @selectionMobileMaxMenuHeight * 0.75;
473473
}
474-
.ui.selection.dropdown[class*="very short"] .menu {
474+
.ui.ui.selection.dropdown[class*="very short"] .menu {
475475
max-height: @selectionMobileMaxMenuHeight * 0.5;
476476
}
477477
}
478478
.ui.selection.dropdown:not(.unlimited) .menu {
479479
max-height: @selectionMobileMaxMenuHeight;
480480
}
481481
& when (@variationDropdownLong) {
482-
.ui.selection.dropdown.long .menu {
482+
.ui.ui.selection.dropdown.long .menu {
483483
max-height: @selectionMobileMaxMenuHeight * 2;
484484
}
485-
.ui.selection.dropdown[class*="very long"] .menu {
485+
.ui.ui.selection.dropdown[class*="very long"] .menu {
486486
max-height: @selectionMobileMaxMenuHeight * 3;
487487
}
488488
}
489489
}
490490
@media only screen and (min-width: @tabletBreakpoint) {
491491
& when (@variationDropdownShort) {
492-
.ui.selection.dropdown.short .menu {
492+
.ui.ui.selection.dropdown.short .menu {
493493
max-height: @selectionTabletMaxMenuHeight * 0.75;
494494
}
495-
.ui.selection.dropdown[class*="very short"] .menu {
495+
.ui.ui.selection.dropdown[class*="very short"] .menu {
496496
max-height: @selectionTabletMaxMenuHeight * 0.5;
497497
}
498498
}
499499
.ui.selection.dropdown:not(.unlimited) .menu {
500500
max-height: @selectionTabletMaxMenuHeight;
501501
}
502502
& when (@variationDropdownLong) {
503-
.ui.selection.dropdown.long .menu {
503+
.ui.ui.selection.dropdown.long .menu {
504504
max-height: @selectionTabletMaxMenuHeight * 2;
505505
}
506-
.ui.selection.dropdown[class*="very long"] .menu {
506+
.ui.ui.selection.dropdown[class*="very long"] .menu {
507507
max-height: @selectionTabletMaxMenuHeight * 3;
508508
}
509509
}
510510
}
511511
@media only screen and (min-width: @computerBreakpoint) {
512512
& when (@variationDropdownShort) {
513-
.ui.selection.dropdown.short .menu {
513+
.ui.ui.selection.dropdown.short .menu {
514514
max-height: @selectionComputerMaxMenuHeight * 0.75;
515515
}
516-
.ui.selection.dropdown[class*="very short"] .menu {
516+
.ui.ui.selection.dropdown[class*="very short"] .menu {
517517
max-height: @selectionComputerMaxMenuHeight * 0.5;
518518
}
519519
}
520520
.ui.selection.dropdown:not(.unlimited) .menu {
521521
max-height: @selectionComputerMaxMenuHeight;
522522
}
523523
& when (@variationDropdownLong) {
524-
.ui.selection.dropdown.long .menu {
524+
.ui.ui.selection.dropdown.long .menu {
525525
max-height: @selectionComputerMaxMenuHeight * 2;
526526
}
527-
.ui.selection.dropdown[class*="very long"] .menu {
527+
.ui.ui.selection.dropdown[class*="very long"] .menu {
528528
max-height: @selectionComputerMaxMenuHeight * 3;
529529
}
530530
}
531531
}
532532
@media only screen and (min-width: @widescreenMonitorBreakpoint) {
533533
& when (@variationDropdownShort) {
534-
.ui.selection.dropdown.short .menu {
534+
.ui.ui.selection.dropdown.short .menu {
535535
max-height: @selectionWidescreenMaxMenuHeight * 0.75;
536536
}
537-
.ui.selection.dropdown[class*="very short"] .menu {
537+
.ui.ui.selection.dropdown[class*="very short"] .menu {
538538
max-height: @selectionWidescreenMaxMenuHeight * 0.5;
539539
}
540540
}
541541
.ui.selection.dropdown:not(.unlimited) .menu {
542542
max-height: @selectionWidescreenMaxMenuHeight;
543543
}
544544
& when (@variationDropdownLong) {
545-
.ui.selection.dropdown.long .menu {
545+
.ui.ui.selection.dropdown.long .menu {
546546
max-height: @selectionWidescreenMaxMenuHeight * 2;
547547
}
548-
.ui.selection.dropdown[class*="very long"] .menu {
548+
.ui.ui.selection.dropdown[class*="very long"] .menu {
549549
max-height: @selectionWidescreenMaxMenuHeight * 3;
550550
}
551551
}

0 commit comments

Comments
 (0)