-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
apps/for-everyone-website/src/content/docs/guides/typography.mdx
Outdated
Show resolved
Hide resolved
apps/for-everyone-website/src/content/docs/guides/typography.mdx
Outdated
Show resolved
Hide resolved
|
||
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
components/o3-foundation/src/css/components/Typography/usecases.css
Outdated
Show resolved
Hide resolved
There's an error when running o3-storybook:
|
components/o3-foundation/src/css/components/Typography/usecases.css
Outdated
Show resolved
Hide resolved
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.
…aphy.mdx Co-authored-by: Ben Freshwater <[email protected]>
…usecases.css Delete duplicate declaration
67aae04
to
b7d2372
Compare
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.