Skip to content

Commit bfeb97e

Browse files
authored
Merge pull request #36 from joville/patch-1
Patch 1
2 parents 760180f + 6723d3f commit bfeb97e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/styles/progress-tracker.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
transition: background-color, border-color;
4242
transition-duration: 0.3s;
4343
}
44+
@supports (x: attr(x type(*))) {
45+
.progress-marker::before {
46+
content: attr(data-text string, "");
47+
}
48+
}
4449
.progress-marker::after {
4550
content: "";
4651
display: block;
@@ -403,4 +408,4 @@
403408
}
404409
[dir=rtl] .progress-tracker--center .progress-marker::after {
405410
left: -50%;
406-
}
411+
}

src/styles/progress-tracker/_progress-tracker.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
border-radius: 50%;
5252
transition: background-color, border-color;
5353
transition-duration: $animation-duration;
54+
55+
@supports (x: attr(x type(*))) {
56+
content: attr(data-text string, "");
57+
}
5458
}
5559

5660
// Path between markers

0 commit comments

Comments
 (0)