-
Notifications
You must be signed in to change notification settings - Fork 206
Typography metadata fixes and deprecation bits #523
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
* add Typography landing page * also, hide old Typography (but link to it from the main page)
* also, add link to Tool in ActionButton description
| @@ -0,0 +1,19 @@ | |||
| name: Typography (Legacy) | |||
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.
This is basically what we had before in typography-deprecated.yml
| @@ -1,19 +1,181 @@ | |||
| id: heading-display | |||
| name: Typography (Deprecated II) | |||
| name: Typography (Deprecated) | |||
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.
This is basically what we had before in typography.yml.
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.
Do you want to maybe indicate what was the deprecated V1, V2?
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.
There is no version number for the previous implementations of typography, they were both present when we moved to individual versioning. Calling them legacy and deprecated is the best we can do here, I'm afraid.
| header.spectrum-CSSComponent-sectionHeading(id="variants") | ||
| h4.spectrum-Heading3 | ||
| a(href="#variants").spectrum-BigSubtleLink Variants | ||
| a(href="#variants").spectrum-BigSubtleLink=`${component.examplesHeading ? component.examplesHeading : 'Variants'}` |
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.
This just makes it possible for the Typography landing page to say "Components" instead of "Variants"
| @@ -1,12 +1,16 @@ | |||
| name: Typography (Internationalized) | |||
| fastLoad: false | |||
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.
This makes it so the right Typekit loads on the dev site when you click this example in the sidenav.
| name: componentData.name, | ||
| component: componentName, | ||
| hide: componentData.hide, | ||
| fastLoad: componentData.fastLoad, |
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.
Nav data as passed to the template is its own structure, so we have to copy these properties here.
| //- | ||
| a.spectrum-Card.spectrum-Card--small.spectrum-Card--horizontal(href=`${spectrumURL || 'https://spectrum.corp.adobe.com/'+pkg.name.split('/').pop()}` target="_blank") | ||
| if component.SpectrumSiteSlug | ||
| a.spectrum-Card.spectrum-Card--small.spectrum-Card--horizontal(href=`${component.SpectrumSiteSlug}` target="_blank") |
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.
This just basically enables the card that links to the Spectrum docs.
| @@ -1,7 +1,8 @@ | |||
| name: Tool | |||
| status: Verified | |||
| dnaStatus: Deprecated | |||
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.
status is now "dnaStatus"?
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.
No, they are two separate things, which work together in concert with the data from DNA in a very confusing fashion to display whether a component is deprecated or whatnot.
It's best to ignore this, otherwise we'll be reworking tons of unrelated stuff to untangle the mess ;)
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 for the clarification, all good!
| <p class="spectrum-Body spectrum-Body--XS">Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | ||
| <h1 class="spectrum-Heading spectrum-Heading--XXS">Lorem Ipsum Dolor</h1> | ||
| <h6 class="spectrum-Heading spectrum-Heading--XXS">Lorem Ipsum Dolor</h6> |
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.
so this is all fine and good but I am wondering if this matters as XXXL & XXL are also h1-s and if we want to encourage that. I thought the idea of t-shirt sizing was to remove the link between numeric title sizes and heading sizes.
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.
Basically, <h1>-<h6> correspond to semantic heading levels. The top-level heading on a page must be a <h1>, but depending on the design intent, it could be XL, XXL, or XXXL. For instance, once could use a <h1> that is XXL (formerly display) as the top-level heading on the main site landing page, but could use a <h1> that is a XL elsewhere for the top-level heading. This all depends on the design.
Since there is no such thing as a <h7> tag, and because of the way the sizing plays out, the 3 largest sizes (XXXL, XXL, XL) are all shown with <h1> tags.
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 for explaining your reasoning. this is good to me
| @@ -1,19 +1,181 @@ | |||
| id: heading-display | |||
| name: Typography (Deprecated II) | |||
| name: Typography (Deprecated) | |||
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.
Do you want to maybe indicate what was the deprecated V1, V2?
| @@ -1,12 +1,12 @@ | |||
| name: Typography (Int., Deprecated I) | |||
| name: Typography (Internationalized, Deprecated) | |||
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 thought having this short helps to not have it over-flow in the sidebar as that is the title of the link to this page.
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.
They are not present in the sidebar. Please view the docs site here https://git.corp.adobe.com/pages/lawdavis/spectrum-css-typography/docs/
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.
right, got removed from the sidebar. It's fine.
| name: Typography (Int., Deprecated I) | ||
| name: Typography (Internationalized, Deprecated) | ||
| status: Deprecated | ||
| hide: true |
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.
are we sure we want to hide the old 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.
It's very, very confusing otherwise. We link to the deprecated typography from the landing page, so it's not orphaned.
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.
Thank you @lazd for your hard work correcting the documentation.
* docs: swap out the Typekit Ids * docs: typography metadata fixes and deprecation bits (#523) * docs: support hiding examples, disabling fastLoad * docs: support changing Variants heading, enable Spectrum cards * docs: Typography landing page * docs: hide old Typography (but link to it from the main page) * docs: remove Tool from menu, fix ButtonGroup Spectrum link * docs: add link to Tool in ActionButton description Co-authored-by: Larry Davis <lazdnet@gmail.com>
Description
This PR does the following:
<h1>)How and where has this been tested?
gulp dev, use eyesDocs are deployed here for your perusal: https://git.corp.adobe.com/pages/lawdavis/spectrum-css-typography/docs/typography.html
Screenshots
To-do list