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

chore: Add further new type usecases [OR-1205] #1921

Merged
merged 5 commits into from
Jan 14, 2025

Conversation

notlee
Copy link
Contributor

@notlee notlee commented Jan 13, 2025

Skip link usescases. It adds an underline to the body-base style, but not the colours or interactive states we'd associate with a link. We don't have a similar style for a link within body-lg which suggests we don't expect links in those contexts? From an engineering perspective I'd have body-base or body-lg classes, and any link within would have colour and an underline for the different states (hover, etc). Unsure how to represent this in Figma helpfully for designers except for providing a link component, which doesn't help with applying a link style within a body of text. Waiting for feedback from design.

@notlee notlee requested a review from a team as a code owner January 13, 2025 13:38
@notlee notlee changed the title chore: Add further new type usecases [OR-1205 chore: Add further new type usecases [OR-1205] Jan 13, 2025
Base automatically changed from 2025-release-type-usecase-display to 2025-release January 13, 2025 13:42

We use multiple typographic scales for different font families. Our scale ranges from -3 to 10, depending on the font family. Consider scale 0 the baseline, with ascending and descending values in each direction. Avoid using styles below zero for long form content.
Typography use-cases provide low level typography styles for use in a variety of contexts. In addition to these general type style, Origami provides typography components which use these. For example the [display component](#) combines all three [display sizes](#display) at different breakpoints for a responsive heading.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[display component] links to the top of this page. I am unsure what content this is supposed to be directing me to.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot 😄 That content doesn't exist yet. When we've done updating components OR-1193 let's do a solid review of the docs

.o3-typography-link,
.o3-typography-wrapper > a,
.o3-typography-wrapper > p > a {
:where([data-o3-brand] a) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this also need where([class^='o3-typography']) like in components/o3-foundation/src/css/components/Typography/index.css?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question but no. The intention here :where([data-o3-brand] a) is to style any link on the page that has o3 applied (where keep specificity low), effectively a global style but actually scoped to o3. On the other hand where([class^='o3-typography']) applies to any element with an o3-type class

@frshwtr
Copy link
Contributor

frshwtr commented Jan 13, 2025

There's an error when running o3-storybook:

Module not found: Error: [CaseSensitivePathsPlugin] `/Users/ben.freshwater/github/origami/components/o3-foundation/src/css/components/typography/index.css` does not match the corresponding path on disk `Typography`.

@notlee notlee temporarily deployed to origami-webs-2025-relea-cvz9px January 13, 2025 16:35 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-cvz9px January 13, 2025 16:43 Inactive
notlee and others added 4 commits January 13, 2025 16:49
Skip link usescases. It adds an underline to the body-base style, but not the colours or interactive states we'd associate with a link. We don't have a similar style for a link within body-lg which suggests we don't expect links in those contexts? From an engineering perspective I'd have body-base or body-lg classes, and any link within would have colour and an underline for the different states (hover, etc). Unsure how to represent this in Figma helpfully for designers except for providing a link component, which doesn't help with applying a link style within a body of text. Waiting for feedback from design.
@notlee notlee force-pushed the 2025-release-type-usecase-the-rest branch from 67aae04 to b7d2372 Compare January 13, 2025 16:51
@notlee notlee temporarily deployed to origami-webs-2025-relea-cvz9px January 13, 2025 16:51 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-cvz9px January 13, 2025 16:54 Inactive
@notlee notlee merged commit 8bd84c8 into 2025-release Jan 14, 2025
5 checks passed
@notlee notlee deleted the 2025-release-type-usecase-the-rest branch January 14, 2025 09:30
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.

2 participants