NCIOCPL / ncids

NCI Design System
10 stars 5 forks source link

(#1839) Card font size change #1857

Closed karlikpj closed 1 month ago

karlikpj commented 1 month ago

Closes #1839

Pull Request Details

Add description

Closes #

Author PR Checklist

Items that the author of the PR is responsible for checking before submitted the PR.

General:

Accessibility:

Development:

Product Reviewer PR Checklist

Items the product team is responsible for reviewing.

General:

Accessibility:

Design Reviewer PR Checklist

Items the design team is responsible for reviewing. 


General:

Developer Reviewer PR Checklist

Items the development team is responsible for reviewing.

General:

Accessibility:

github-actions[bot] commented 1 month ago

Viewing Information

bryanpizzillo commented 1 month ago

I would like us to discuss this a bit more and bring some consistency to these token usages. I.E. We should have a $theme-card-title and $theme-card-body or something tokens and set them accordingly. This change in this PR (as of this writing) has now made these items out of sync with Guide Cards. However, we have a ticket in the platform saying, "The body text shall have the same font size as all cards from the Design System," which is for a wide guide card. This type of requirement would do better by referencing the theme token to use. (Figma too?)

@andyvanavery31 and I talked about this. The Guide Card component and the Card component should be kept separate. However, we should still have component theme tokens for the font sizes for this card.

Note my naming in the initial comment sucks. Funny enough, there are some tokens already in USWDS for cards. Probably a lot more than we need. https://designsystem.digital.gov/documentation/settings/#card.

bryanpizzillo commented 1 month ago

One more followup, WRT the token naming. So this has an odd issue - we "replaced" usa-card with nci-card. While we don't pass through usa-card at this point, we could in the future. If we reuse or name our tokens for nci-card to be $theme-card we will break or conflict with usa-card. So for this instance we should use $theme-nci-card-* for nci-card settings. There should be a nice comment above these settings pointing out that we are naming this $theme-nci-card- to avoid conflicts with usa-card in the future.

@karlikpj suggested $theme-nci-card-title-typeset and $theme-nci-card-description-typeset for the token names, which look good.

andyvanavery31 commented 1 month ago

After the change to use $thme-nci-card-title-typeset and $theme-nci-card-description-typeset, this still passes Product Review.