-
Notifications
You must be signed in to change notification settings - Fork 206
feat: adding t-shirt sized typography (SDS-2513) #210 #408
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
Conversation
components/typography/index.css
Outdated
|
|
||
|
|
||
| /* T-Shirt sizes for .spectrum-Article */ | ||
| .spectrum-Article { |
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.
Serif is an option independent of an Article. For the update, I'm not sure it makes any sense to retain this old wrapper concept 🤔. @GarthDB pinging for input.
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.
@GarthDB @NateBaldwinDesign we have 2 options here:
- Keep it wrapped in this
.spectrum-Articlewrapper class and duplicate all the rules outside in the root level. This will increase file size. - Remove this wrapper class and move all of the classes in the root level. This will be most efficient in class name reduction.
Let me know what you prefer.
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.
I'd default to @NateBaldwinDesign on this. The wrapper is a convenience if everything in the article would use the serif if that's not the case, article should be a variant and not a wrapper.
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.
Thanks @GarthDB . I will remove the wrapper class and update the documentation.
components/typography/index.css
Outdated
| @mixin typographyTShirtSizes .spectrum-BodyXS, body-serif-XS {} | ||
| @mixin typographyTShirtSizes .spectrum-BodyXXS, body-serif-XS {} | ||
|
|
||
| @mixin typographyTShirtSizes .spectrum-HeadingXXXL--light, heading-light-XXXL {} |
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.
Not sure why we would include sans-serif classnames under "Article"? I expected to see only the serif options in this wrapper class considering the previously mentioned paradigm of the previous typography
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.
whoops, my bad. should be all serif.
components/typography/index.css
Outdated
| @mixin typographyTShirtSizes .spectrum-HeadingXL--heavy, heading-heavy-XL {} | ||
| @mixin typographyTShirtSizes .spectrum-HeadingL--heavy, heading-heavy-L {} | ||
|
|
||
| /* These don't exist */ |
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.
is there an issue already filed to un-comment these when DNA is released with these options?
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.
logged here as a subtask of the typography updates:
|
@bernhard-adobe please make sure that all font weights are included in the Typekit for Spectrum-CSS. It appears that weights heavier than bold are not included. This screenshot shows Heading XXL default (top) and Heading XXL Strong (bottom). By default, Heading is bold (font weight 700), but for Looks like this issue exists for the current typography as well. The font weights we need to support are: In DNA, we have them specified with the following numbers, which correspond to CSS font weight numbers.
|
|
It appears none of the font stacks are coming directly from DNA. This becomes evident in the fonts listed to use for Arabic and Hebrew, which differ from what's defined in DNA. I would like to discuss this file: spectrum-css/components/commons/fonts.css Line 32 in 2f4fab6
|
| <p class="spectrum-DetailM">DetailL <em class="spectrum-DetailM--light">DetailM Emphasis</em> <strong class="spectrum-DetailL--strong">DetailM Strong</strong>.</p> | ||
| <p class="spectrum-DetailS">DetailL <em class="spectrum-DetailS--light">DetailS Emphasis</em> <strong class="spectrum-DetailL--strong">DetailS Strong</strong>.</p> |
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.
Docs incorrectly label examples as "DetailL" for Medium and Small
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.
It appears none of the font stacks are coming directly from DNA. This becomes evident in the fonts listed to use for Arabic and Hebrew, which differ from what's defined in DNA. I would like to discuss this file:
spectrum-css/components/commons/fonts.css
Line 32 in 2f4fab6
--spectrum-font-family-ar: 'adobe-arabic', 'myriad-arabic', var(--spectrum-font-fallbacks-sans); and how we can ensure that CSS pulls these fallback font stacks from DNA here: https://git.corp.adobe.com/Spectrum/spectrum-dna/blob/master/data/aliases/StaticAliases.mjs#L59
Just to clarify: arabic & hebrew use myriad and the rest is going to use adobe clean in it's international versions?
I am not sure why those were hard-coded here, maybe @GarthDB knows more about this.
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.
is there an option for --spectrum-font-family-base: 'adobe-clean-ux', 'adobe-clean', 'Source Sans Pro', var(--spectrum-font-fallbacks-sans); ?
We will have to ask @misterbrownlee for either making the update or providing us the credentials. |
bernhard-adobe
left a comment
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.
Please add examples of "Detail Light" and "Detail Serif" to this section
I think the class spectrum-Article as a parent will set the detail into serif.
Maybe @GarthDB knows if we should continue with this wrapper class to get serif.
I added the light option. Notice the serif option below the san-serif.

189f8c3 to
440dfdc
Compare
|
Great and extensive work @bernhard-adobe and @NateBaldwinDesign. |
|
@bernhard-adobe just to follow-up on the Slack conversation: for |
|
blocked currently by the Typekit update: https://jira.corp.adobe.com/browse/SDS-4460 |
|
@bernhard-adobe now that the Typekit updated has been made, is there anything else remaining on this PR? If not, we can go ahead and merge and release it tomorrow! |
|
@lazd This is ready for review. |
|
@bernhard-adobe the sidebar clutter is real, but it shouldn't hold up this PR. @GarthDB, if this is good to go in your opinion, I say merge it! |
|
I am working on correcting the component statuses and links on this PR and will merge shortly. |
* docs: support hiding examples, disabling fastLoad * docs: support changing Variants heading, enable Spectrum cards * docs: correct Typography example status, markup errors, and <h1> usage * add Typography landing page * also, hide old Typography (but link to it from the main page) * docs: remove Tool from menu, fix ButtonGroup Spectrum link * also, add link to Tool in ActionButton description * docs: correct Heading component description * docs: use the descriptions from the Spectrum site * docs: correct spelling mistake






Covers:
SDS-2513 Adding t-shirt sized typography. Issue: #210
SDS-3259 Update Spectrum CSS Typography documentation: Spectrum CSS NextJS & legacy documentation
SDS-4405 Verify Spectrum CSS Typography Updates
SDS-4403 Split Typography documentation for Spectrum CSS
SDS-4460 Update Typekit / Adobe Fonts (Thanks @misterbrownlee )
SDS-4453 adobe-clean-ux support can be removed #416
Description
For validation the following tokens can be searched:
Paperdoc summary of all changes: https://paper.dropbox.com/doc/Typography-Update--AopzJsKrFFzH_O8gexjcxdEdAg-bluAkl9HGke8WKkJvow2N
(updated t-shirt sized): https://git.corp.adobe.com/gist/nbaldwin/3364cf137d8bd50097c3bedbde9218e5
(original t-shirt sized): https://git.corp.adobe.com/Spectrum/spectrum-dna/pull/310
How and where has this been tested?
Ran Backstop.js tests a couple of times: Latest test is https://spectrum-visual-regression.ci.corp.adobe.com/job/spectrum-css-vr-test-asset/157/artifact/spectrum-css/backstop_data/html_report/index.html
Tested on MacOS 10.14.5 (18F203)
on Chrome Version 80.0.3968.0 (Official Build) canary (64-bit)
New pages:
Body
Code
Detail
Heading
Old pages:
Typography page
Typography International page
Screenshots
To-do list