Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Begin applying use-case tokens to o3 components. #1923

Merged
merged 8 commits into from
Jan 14, 2025

Conversation

notlee
Copy link
Contributor

@notlee notlee commented Jan 14, 2025

  • Big number
  • Editorial body
  • Byline
  • Headline Large (renamed Display)

This renames the JSX component Headline to Heading. It accepts a prop "type" of "headline", "chapter", etc. As Headline is a type of heading,<Headline type="headline" >, this was confusing. I would prefer these to be separate components as the style may be applied outside of a heading context, but this rename is pragmatic given our hard deadline.

I chose to stop and open a PR here since it was getting chunky and will continue applying use-case tokens to other Heading types in a follow on PR.

Increases mobile font size. Adds `strong` and `em` styling to direct children.

The token `body-content-highlight` font weight is coming through as text `Bold`.
I have asked the design team to take a look. `body-highlight` is correct, it's coming
through as a reference to an `o3-font-weight` value.

Moving on in the meantime.
Apply correct tokens and rename to "display" according to our new design guidelines. Rename JSX component "Headline" to "Heading". It accepts a prop "type" which can be "display", "headline", etc. `<Headline type="headline" >` made little sense. I would prefer these to be seperate components as the style may be applied outside of a heading context, but this rename is pragmatic given our hard deadline
@notlee notlee requested a review from a team as a code owner January 14, 2025 13:48
@notlee notlee temporarily deployed to origami-webs-2025-relea-qjygx6 January 14, 2025 13:52 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-qjygx6 January 14, 2025 14:07 Inactive
@frshwtr
Copy link
Contributor

frshwtr commented Jan 14, 2025

Looks like there's some missing tokens in whitelabel
image

@notlee
Copy link
Contributor Author

notlee commented Jan 14, 2025

@frshwtr those tokens are missing because I haven't updated other Heading types yet, just Display.

I chose to stop and open a PR here since it was getting chunky and will continue applying use-case tokens to other Heading types in a follow on PR.

Follow on here!
#1925

@notlee notlee temporarily deployed to origami-webs-2025-relea-qjygx6 January 14, 2025 14:58 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-qjygx6 January 14, 2025 15:02 Inactive
@notlee notlee requested review from frshwtr and j-mes January 14, 2025 15:03
@notlee notlee merged commit fea6d1e into 2025-release Jan 14, 2025
7 of 9 checks passed
@notlee notlee deleted the 2025-release-apply-type-usecases-o3 branch January 14, 2025 16:04
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.

3 participants