Skip to content

Commit 17aa72d

Browse files
authored
feat(segment): wrapping in addition to stackable
This PR adds an alias wrapping to the current stackable horizontal segments for consistency as we already use wrapping for button groups or menu items which actually wrap single elements instead of stacking all of them at once which is meant by "stackable" in every other element. The horizontal stackable variant gets deprecated and will be removed in 2.10
1 parent 72d102a commit 17aa72d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/definitions/elements/segment.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@
437437
border-radius: @groupedBorderRadius;
438438
border: @groupedBorder;
439439
}
440+
.ui.wrapping.horizontal.segments,
440441
.ui.stackable.horizontal.segments {
441442
flex-wrap: wrap;
442443
}
@@ -473,7 +474,7 @@
473474
.ui.segments > .horizontal.segments:first-child {
474475
border-top: none;
475476
}
476-
.ui.horizontal.segments:not(.stackable) > .segment:first-child {
477+
.ui.horizontal.segments:not(.stackable):not(.wrapping) > .segment:first-child {
477478
border-left: none;
478479
}
479480
.ui.horizontal.segments > .segment:first-child {

0 commit comments

Comments
 (0)