Skip to content

Commit

Permalink
docs(stepper): Make CDK stepper example accessible in dark mode. (#20013
Browse files Browse the repository at this point in the history
)

* 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.
  • Loading branch information
walvekarnikhil authored Jul 22, 2020
1 parent e7fe772 commit 5f76afa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.example-container {
border: 1px solid black;
border: 1px solid;
padding: 10px;
margin: 10px;
}
Expand All @@ -10,24 +10,21 @@
margin-top: 10px;
}

.example-active {
color: blue;
}

.example-step {
background: transparent;
border: 0;
margin: 0 10px;
padding: 10px;
color: black;
color: inherit;
}

.example-step.example-active {
color: blue;
border-bottom: 1px solid blue;
border-bottom: 1px solid;
font-weight: 600;
}

.example-nav-button {
background: transparent;
border: 0;
color: inherit;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.example-container {
border: 1px solid black;
border: 1px solid;
padding: 10px;
margin: 10px;
}
Expand All @@ -15,15 +15,16 @@
border: 0;
margin: 0 10px;
padding: 10px;
color: black;
color: inherit;
}

.example-step.example-active {
border-bottom: 1px solid blue;
color: blue;
border-bottom: 1px solid;
font-weight: 600;
}

.example-nav-button {
background: transparent;
border: 0;
color: inherit;
}

0 comments on commit 5f76afa

Please sign in to comment.