Visitar URL original
USWDS - Identifier: Set font weight fallbacks for Identifier. by mejiaj · Pull Request #3740 · uswds/uswds · GitHub
Skip to content

USWDS - Identifier: Set font weight fallbacks for Identifier. - #3740

Merged
thisisdano merged 3 commits into
developfrom
jm-identifier-fonts
Nov 23, 2020
Merged

thisisdano merged 3 commits into
developfrom
jm-identifier-fonts

Conversation

@mejiaj

@mejiaj mejiaj commented Oct 2, 2020 •

Copy link
Copy Markdown
Contributor

Fixes #3653

Description

Sets identifier thin and bold font-weights to "normal" if either are disabled.

Additional information

You have to set the following variables to false and then go see the identifier.

// _uswds-theme-typography.scss
$theme-font-weight-light: false;
$theme-font-weight-bold: false;

Before you hit Submit, make sure you’ve done whichever of these applies to you:

  • Follow the 18F Front End Coding Style Guide and Accessibility Guide.
  • Run npm test and make sure the tests for the files you have changed have passed.
  • Run your code through HTML_CodeSniffer and make sure it’s error free.
  • Title your pull request using this format: [Website] - [UI component]: Brief statement describing what this pull request solves.

@mejiaj
mejiaj requested a review from thisisdano October 2, 2020 20:04
@mejiaj mejiaj self-assigned this Oct 2, 2020
@mejiaj

mejiaj commented Oct 4, 2020

Copy link
Copy Markdown
Contributor Author

@thisisdano maybe we should have a notice in the guidance for each component that has special requirements like this? (For dark themes & disabled font-weights)

I think it's reasonable to require normal and bold, and we should make a note of that in the docs
@thisisdano

Copy link
Copy Markdown
Contributor

I reverted these to "normal" and "bold" without fallbacks. We should avoid using weights outside those two in the future, unless it's critical to the visual output. I think it's reasonable to require normal and bold weights for fonts in the design system, and we should add this requirement to the documentation

@mejiaj

mejiaj commented Nov 4, 2020

Copy link
Copy Markdown
Contributor Author

@jAigret-Bix we should create an issue to figure out where and what to update on USWDS-Site.

@thisisdano
thisisdano merged commit 6dbdcd6 into develop Nov 23, 2020
@thisisdano
thisisdano deleted the jm-identifier-fonts branch November 23, 2020 05:53
@thisisdano thisisdano mentioned this pull request Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Indentifier requirements creating problems

2 participants