Skip to content

Commit

Permalink
Add u-small-text--subtle
Browse files Browse the repository at this point in the history
  • Loading branch information
anselmbradford committed Nov 5, 2024
1 parent a2c2925 commit 3108763
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/pages/helper-classes-mixins.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ variation_groups:
`.u-small-text(@context)`
```js
```scss
// Ex.
Expand All @@ -413,19 +413,20 @@ variation_groups:
}
}
// Compiles to
.example {
font-size: 1.25em;
}
.example small {
font-size: 0.7em;
}
```
There is also a modifier, `u-small-text--subtle`, which sets the color
to be gray.
guidelines: ''
eyebrow: Utilities
status: Released
Expand Down
4 changes: 4 additions & 0 deletions packages/cfpb-design-system/src/utilities/utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -425,4 +425,8 @@
small,
.u-small-text {
@include u-small-text;

&--subtle {
color: var(--gray);
}
}

0 comments on commit 3108763

Please sign in to comment.