Skip to content

Commit 4929629

Browse files
authored
feat(divider): added variable for border style
This was hardcoded as 'solid', but deserves to be a variable design decision.
1 parent 0d6f106 commit 4929629

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/definitions/elements/divider.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
---------------*/
4343

4444
.ui.divider:not(.vertical):not(.horizontal) {
45-
border-top: @shadowWidth solid @shadowColor;
46-
border-bottom: @highlightWidth solid @highlightColor;
45+
border-top: @shadowWidth @borderStyle @shadowColor;
46+
border-bottom: @highlightWidth @borderStyle @highlightColor;
4747
}
4848

4949
/*--------------
@@ -117,8 +117,8 @@
117117
content: '';
118118
z-index: 3;
119119

120-
border-left: @shadowWidth solid @shadowColor;
121-
border-right: @highlightWidth solid @highlightColor;
120+
border-left: @shadowWidth @borderStyle @shadowColor;
121+
border-right: @highlightWidth @borderStyle @highlightColor;
122122

123123
width: 0;
124124
height: @verticalDividerHeight;

src/themes/default/elements/divider.variables

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--------------------*/
88

99
@margin: 1rem 0;
10+
@borderStyle: solid;
1011

1112
@highlightWidth: 1px;
1213
@highlightColor: @whiteBorderColor;

0 commit comments

Comments
 (0)