Rework documentation#2550
Conversation
5d2192b to
add5121
Compare
Visual regression report✅ No changes.
Baselines come from the |
|
408073b to
a8a412c
Compare
a8a412c to
d128181
Compare
hajnaldo
left a comment
There was a problem hiding this comment.
Shared Tokens:
Documentation: It would be nice to mention explicitly that devs should use these tokens when they are tasked to build custom solutions (bc if they do so, the theming will work on their custom-built stuff too).
Token list:
- Elevation-related tokens:
Would it be possible to reflect what values belong to certain elevation styles, such as ordering them into groups according to how it is shown in the json:
"elevation1": { "value": [ { "x": "{semantic.dropShadow.x.elevation1.dropshadow1}", "y": "{semantic.dropShadow.y.elevation1.dropshadow1}", "blur": "{semantic.dropShadow.blur.elevation1.dropshadow1}", "spread": "{semantic.dropShadow.spread.elevation1.dropshadow1}", "color": "{semantic.color.dropShadow.shadowColor1}", "type": "dropShadow" }, { "x": "{semantic.dropShadow.x.elevation1.dropshadow2}", "y": "{semantic.dropShadow.y.elevation1.dropshadow2}", "blur": "{semantic.dropShadow.blur.elevation1.dropshadow2}", "spread": "{semantic.dropShadow.spread.elevation1.dropshadow2}", "color": "{semantic.color.dropShadow.shadowColor2}", "type": "dropShadow" } ]
Theme Overrides:
Although it is technically possible to override primitives and it may even be useful, we don't want to encourage it upfront. Would it be possible not to proactively show this option in the docu?
d128181 to
a65c973
Compare
1959e8e to
59b7ab8
Compare
59b7ab8 to
ba6ede5
Compare
Thanks for the suggestions, I’ve updated the Shared Tokens page. |
There was a problem hiding this comment.
Please wrap this into an info Alert, it would look better.
| type MainDocsData = { | ||
| themes: Record<string, { resource: Theme }> | ||
| // resource is `any` to support both old BaseTheme and new token objects | ||
| themes: Record<string, { resource: any }> |
There was a problem hiding this comment.
maybe better typing here, combo of BaseTheme and type of new token objects?
matyasf
left a comment
There was a problem hiding this comment.
Looks good, just some smaller comments. Also:
- Please add an info box to the legacy themes, that they are used by InstUI v 11.6 components.
- Add an info box to all new themes, that states "This theme meets WCAG 2.1 AA rules for color contrast."
- something is off with the themes, they are not showing for new themes after I switch them
matyasf
left a comment
There was a problem hiding this comment.
See my comments. Also something is still off with theme variables, in 11.6 https://instructure.design/pr-preview/pr-2550/Avatar there are no theme variables shown
| renderNewThemePageAlert(subject = 'This theme') { | ||
| const v11_7Href = window.location.pathname.match(/v\d+_\d+/) | ||
| ? window.location.pathname.replace(/v\d+_\d+/, 'v11_7') | ||
| : `/v11_7${window.location.pathname}` | ||
| return ( | ||
| <Alert variant="info" margin="0 0 medium"> | ||
| {subject} is designed for components for <strong>v11.7</strong> and | ||
| later. If you are viewing an older version,{' '} | ||
| <Link href={v11_7Href}>switch to v11.7</Link> | ||
| </Alert> | ||
| ) | ||
| } |
There was a problem hiding this comment.
It would be much nicer, if this alert would only show if the user views the 11.6 page. (so if the URL has no v11_6 part or no v11_ part at all
| @@ -1,6 +1,6 @@ | |||
| --- | |||
| title: Upgrade Guide for Version 11 | |||
There was a problem hiding this comment.
Can you rename this to "Upgrade guide for v10 -> v11" Now all the versions are v11, so its not clear what this is about.
| title: Upgrade Guide for multi version (beta) | ||
| category: Guides | ||
| order: 9999999 | ||
| title: Upgrade Guide for multi version |
There was a problem hiding this comment.
Can you rename this to "Upgrade guide for v11.7"?
66a57b5 to
dfad812
Compare




INSTUI-4997
Summary
Co-Authored-By: 🤖 Claude