Skip to content

Commit

Permalink
Merge pull request #1665 from cfpb/ans_font_smoothing
Browse files Browse the repository at this point in the history
cfpb-core: Add font-smoothing CSS rule to base.less file
  • Loading branch information
anselmbradford authored Jun 29, 2023
2 parents 0260477 + 75e1ddb commit 3acbaa6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/pages/typography.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ description: A clear typographic hierarchy is critical to the effective
communication of our brand. Type should be light and well-spaced to reinforce
that we are transparent, open, and approachable. This system uses weight,
scale, and capitalization to convey the relative importance of each heading
within a document. Readability and accessibility allow all users to
efficiently read and absorb textual information.
within a document. Readability, accessibility, and font smoothing to allow
all users to efficiently read and absorb textual information.
variation_groups:
- variation_group_name: Typefaces
variations:
Expand Down Expand Up @@ -161,7 +161,7 @@ accessibility: >-
#### White type on colored backgrounds
White type is accessible on all brand colors at 100% saturation and their darker shades when using at least 14pt type, with the exception of gold.
White type is accessible on all brand colors at 100% saturation and their darker shades when using at least 14pt type, with the exception of gold.
![](/design-system/images/uploads/white_type.png)
Expand Down
1 change: 1 addition & 0 deletions packages/cfpb-core/src/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ body {
font-family: 'Avenir Next', Arial, sans-serif;
font-size: unit((@base-font-size-px / 16 * 100), %);
line-height: @base-line-height;
-webkit-font-smoothing: antialiased;
}

button,
Expand Down

0 comments on commit 3acbaa6

Please sign in to comment.