Skip to content

Commit 1b8c2ea

Browse files
stepper(guide): Make example accessible in dark mode.
Removed hard-coded colors and replaced with inherit colors. Used font-weight to show active step. Fixes angular#17152
1 parent ba441d4 commit 1b8c2ea

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.example-container {
2-
border: 1px solid black;
2+
border: 1px solid;
33
padding: 10px;
44
margin: 10px;
5+
color: inherit;
56
}
67

78
.example-step-navigation-bar {
@@ -10,24 +11,22 @@
1011
margin-top: 10px;
1112
}
1213

13-
.example-active {
14-
color: blue;
15-
}
16-
1714
.example-step {
1815
background: transparent;
1916
border: 0;
2017
margin: 0 10px;
2118
padding: 10px;
22-
color: black;
19+
color: inherit;
2320
}
2421

2522
.example-step.example-active {
26-
color: blue;
27-
border-bottom: 1px solid blue;
23+
color: inherit;
24+
border-bottom: 1px solid;
25+
font-weight: 600;
2826
}
2927

3028
.example-nav-button {
3129
background: transparent;
3230
border: 0;
31+
color: inherit;
3332
}

src/components-examples/cdk/stepper/cdk-linear-stepper-with-form/example-custom-linear-stepper.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.example-container {
2-
border: 1px solid black;
2+
border: 1px solid;
33
padding: 10px;
44
margin: 10px;
5+
color: inherit;
56
}
67

78
.example-step-navigation-bar {
@@ -15,15 +16,17 @@
1516
border: 0;
1617
margin: 0 10px;
1718
padding: 10px;
18-
color: black;
19+
color: inherit;
1920
}
2021

2122
.example-step.example-active {
22-
border-bottom: 1px solid blue;
23-
color: blue;
23+
color: inherit;
24+
border-bottom: 1px solid;
25+
font-weight: 600;
2426
}
2527

2628
.example-nav-button {
2729
background: transparent;
2830
border: 0;
31+
color: inherit;
2932
}

0 commit comments

Comments
 (0)