You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/primer-utilities/docs/colors.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,16 @@ Use text color utilities to set text or [octicons](/styleguide/css/styles/core/c
131
131
132
132
These are our most common text with background color combinations. They don't all pass accessibility standards currently, but will be updated in the future. **Any of the combinations with a warning icon must be used with caution**.
133
133
134
+
### Text color inheritance
135
+
136
+
You can set the color inheritance on an element by using the `text-inherit` class.
137
+
138
+
```html
139
+
<divclass="text-purple">
140
+
This text is purple, <ahref="#"class="text-inherit">including the link</a>
0 commit comments