Skip to content

Commit

Permalink
fix(css): make color contrast colorblind friendly (mdn#36299)
Browse files Browse the repository at this point in the history
* fix(css): make color contrast colorblind friendly

* Update files/en-us/web/css/_doublecolon_after/index.md

---------

Co-authored-by: Estelle Weyl <[email protected]>
  • Loading branch information
OnkarRuikar and estelle authored Oct 11, 2024
1 parent 4c81451 commit 313a326
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions files/en-us/web/css/_doublecolon_after/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ Let's create two classes: one for boring paragraphs and one for exciting ones. W
```css
.exciting-text::after {
content: " <- EXCITING!";
color: green;
color: darkgreen;
font-weight: bolder;
}

.boring-text::after {
content: " <- BORING";
color: red;
color: darkviolet;
font-weight: bolder;
}
```

Expand Down

0 comments on commit 313a326

Please sign in to comment.