Skip to content

Commit 256b901

Browse files
committed
Legends: add two more border variables
1 parent 4a82a9b commit 256b901

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

src/components/_legend.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
&.legend {
77
padding: 1rem;
8-
border: 1px solid var(--legend-border-color);
8+
border: var(--legend-border-width) var(--legend-border-style) var(--legend-border-color);
99
list-style: none;
1010

1111
font-size: 1rem;

src/general/_properties.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
@property --color-8,
1515
@property --color-9,
1616
@property --color-10,
17-
@property --chart-bg-color,
18-
@property --legend-border-color {
17+
@property --chart-bg-color {
1918
syntax: '<color>';
2019
initial-value: transparent;
2120
inherits: true;
@@ -40,24 +39,27 @@
4039
inherits: true;
4140
}
4241

43-
// Axes
42+
// Axes + Legends
4443
@property --primary-axis-width,
4544
@property --secondary-axes-width,
46-
@property --data-axes-width {
45+
@property --data-axes-width,
46+
@property --legend-border-width {
4747
syntax: '<length>';
4848
initial-value: 1px;
4949
inherits: true;
5050
}
5151
@property --primary-axis-style,
5252
@property --secondary-axes-style,
53-
@property --data-axes-style {
53+
@property --data-axes-style,
54+
@property --legend-border-style {
5455
syntax: '<line-style>';
5556
initial-value: solid;
5657
inherits: true;
5758
}
5859
@property --primary-axis-color,
5960
@property --secondary-axes-color,
60-
@property --data-axes-color {
61+
@property --data-axes-color,
62+
@property --legend-border-color {
6163
syntax: '<color>';
6264
initial-value: transparent;
6365
inherits: true;

src/general/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,7 @@ $max-axes: 10;
4040

4141
// Legend
4242
--legend-border-color: rgb(200, 200, 200);
43+
--legend-border-style: solid;
44+
--legend-border-width: 1px;
4345

4446
}

0 commit comments

Comments
 (0)