Skip to content

Commit b198514

Browse files
authored
feat(header): seamless attached variant
The attached header doesn't support the seamless variant like the segment element which results in showing the border between the header and the attached element below. This PR allows to have the attached header element with seamless variant that allows to remove the bottom border when it attaches with the another segment below.
1 parent 3ada1e1 commit b198514

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/definitions/elements/header.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,11 @@
467467
.ui.bottom.attached.header {
468468
border-radius: 0 0 @attachedBorderRadius @attachedBorderRadius;
469469
}
470+
& when (@variationHeaderSeamless) {
471+
.ui.seamless.attached:not(.bottom).header {
472+
border-bottom: none;
473+
}
474+
}
470475

471476
/* Attached Sizes */
472477
.ui.attached.header:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {

src/themes/default/globals/variation.variables

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
@variationHeaderDividing: true;
8383
@variationHeaderBlock: true;
8484
@variationHeaderAttached: true;
85+
@variationHeaderSeamless: true;
8586
@variationHeaderTags: h1, h2, h3, h4, h5, h6;
8687
@variationHeaderSizes: @variationAllSizes;
8788
@variationHeaderColors: @variationAllColors;

0 commit comments

Comments
 (0)