Skip to content

Commit 5f76afa

Browse files
docs(stepper): Make CDK stepper example accessible in dark mode. (#20013)
* docs(stepper): Make CDK stepper example accessible in dark mode. Removed hard-coded colors and replaced with inherit colors. Used font-weight to show active step. Fixes #17152 * Changing order of styles. * Triggering CircleCI build again. * Removing color inherit, since it is not required. It is still required for nav buttons, since those show in the black.
1 parent e7fe772 commit 5f76afa

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.example-container {
2-
border: 1px solid black;
2+
border: 1px solid;
33
padding: 10px;
44
margin: 10px;
55
}
@@ -10,24 +10,21 @@
1010
margin-top: 10px;
1111
}
1212

13-
.example-active {
14-
color: blue;
15-
}
16-
1713
.example-step {
1814
background: transparent;
1915
border: 0;
2016
margin: 0 10px;
2117
padding: 10px;
22-
color: black;
18+
color: inherit;
2319
}
2420

2521
.example-step.example-active {
26-
color: blue;
27-
border-bottom: 1px solid blue;
22+
border-bottom: 1px solid;
23+
font-weight: 600;
2824
}
2925

3026
.example-nav-button {
3127
background: transparent;
3228
border: 0;
29+
color: inherit;
3330
}

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.example-container {
2-
border: 1px solid black;
2+
border: 1px solid;
33
padding: 10px;
44
margin: 10px;
55
}
@@ -15,15 +15,16 @@
1515
border: 0;
1616
margin: 0 10px;
1717
padding: 10px;
18-
color: black;
18+
color: inherit;
1919
}
2020

2121
.example-step.example-active {
22-
border-bottom: 1px solid blue;
23-
color: blue;
22+
border-bottom: 1px solid;
23+
font-weight: 600;
2424
}
2525

2626
.example-nav-button {
2727
background: transparent;
2828
border: 0;
29+
color: inherit;
2930
}

0 commit comments

Comments
 (0)