Skip to content

Commit 28acc52

Browse files
authored
fix: removed elevation 3 because it was a duplicate (#157)
1 parent fd02704 commit 28acc52

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

source/_patterns/elevation/_examples.demonstration.scss

+8-5
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@
1717
background-color: $db-colors-neutral-bg-1-enabled;
1818
}
1919

20-
$list: "", $db-elevation-1, $db-elevation-2, $db-elevation-3, $db-elevation-4,
21-
$db-elevation-8, $db-elevation-12, $db-elevation-24;
20+
$list: "", $db-elevation-1, $db-elevation-2, $db-elevation-4, $db-elevation-8,
21+
$db-elevation-12, $db-elevation-24;
2222

2323
@mixin elevation() {
2424
@for $i from 0 to length($list) {
2525
$className: $i;
26-
@if ($i==5) {
26+
@if ($i==3) {
27+
$className: 4;
28+
}
29+
@if ($i==4) {
2730
$className: 8;
2831
}
29-
@if ($i==6) {
32+
@if ($i==5) {
3033
$className: 12;
3134
}
32-
@if ($i==7) {
35+
@if ($i==6) {
3336
$className: 24;
3437
}
3538
.DO-NOT-COPY-THIS-CLASS-elevation-#{$className} {

source/_patterns/elevation/examples.hbs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<div class="DO-NOT-COPY-THIS-CLASS-elevation-0">Elevation-0</div>
66
<div class="DO-NOT-COPY-THIS-CLASS-elevation-1">Elevation-1</div>
77
<div class="DO-NOT-COPY-THIS-CLASS-elevation-2">Elevation-2</div>
8-
<div class="DO-NOT-COPY-THIS-CLASS-elevation-3">Elevation-3</div>
98
<div class="DO-NOT-COPY-THIS-CLASS-elevation-4">Elevation-4</div>
109
<div class="DO-NOT-COPY-THIS-CLASS-elevation-8">Elevation-8</div>
1110
<div class="DO-NOT-COPY-THIS-CLASS-elevation-12">Elevation-12</div>

tokens/elevation.json

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
"2": {
77
"value": "0 0 1px -1px rgba(0, 0, 0, 0.2), 0 0 4px 1px rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)"
88
},
9-
"3": {
10-
"value": "0 0 2px -1px rgba(0, 0, 0, 0.2), 0 0 8px 1px rgba(0, 0, 0, 0.12), 0 0 4px 0 rgba(0, 0, 0, 0.14)"
11-
},
129
"4": {
1310
"value": "0 0 2px -1px rgba(0, 0, 0, 0.2), 0 0 8px 1px rgba(0, 0, 0, 0.12), 0 0 4px 0 rgba(0, 0, 0, 0.14)"
1411
},

0 commit comments

Comments
 (0)