Closed gfellerph closed 9 months ago
aria-hidden="true"
or span.visually-hidden
labels for all iconskey
attributes in code snippetsp
's (beware of .lead
and .alert
)LinkTo
with both kind
and story
attributesdiv.hide-col-default
wrapper for Controls
component on CSS only docsdark
code blocks[component].docs.mdx
[component].stories.tsx
[component].demo.stories.tsx
[component].snapshot.stories.tsx
@gfellerph Your proposal seems to be very complete in my opinion.
Testing the high contrast mode could be automated eventually with a cypress plugin and snapshot tests: https://github.com/ling1726/cypress-forced-colors
Try emulating the high contrast mode in chrome by yourself:
@alizedebray
key
attributes in code snipptes" to "No react related attributes in code snippets" (e.g. className
, htmlFor
, key
, etc.)linkTo
directive instead of the LinkTo
Storybook block, this would give us more freedom in creating the link: https://storybook.js.org/addons/@storybook/addon-links.[component].styles.scss
and [component].module.scss
for style and scss export files to the naming conventions.[component].blocks.tsx
for custom mdx helper blocks to the naming conventions.@oliverschuerch
My point on LinkTo
was more about the story
attribute which was not needed with Storybook 6 but has to be added with Storybook 7.
No problem using the linkTo
directive although it needs to be investigated as I had to replace it in the Heading docs (you can see in the PR #1673 preview that "check out heading utilities" doesn't show a link).
[*].filter(c => c && c !== 'null').join(' ')
Quick note about tsx, I think this issue is linked: https://github.com/swisspost/design-system/issues/1774
@gfellerph Is this ticket still needed or should we add a docs page about it? Could it be done by the PiBs Guys?
@oliverschuerch, this should rather go into the contribution.md file, but can also be a PIBS task.
I have another small thing that could be in a definition of done: We should also add the sourceState="shown" attribut to the first canvas if the code is not too long.
Some other thoughts:
In https://nicsteenhout.substack.com/p/accessibility-specific-tech-requirements, how can we specify the requirements and to which level? It's quite complex with WCAG and different screen readers.
Adobe Spectrum has a public checklist for design (only design unfortunately): https://spectrum.adobe.com/page/button/#Design-checklist .
Component docs
Controls
Testing
Cross browser testing of the docs
Testing in High Contrast mode
Approval by UX for the story
For more complex widgets: screen reader testing (at least nvda)
Accessibility
Docs
Naming convention
General Coding Rules
[*].filter(c => c && c !== 'null').join(' ')
With more people working on the Design System Documentation, it might be a good idea to write up a definition of done for stories.
To gather some input, what makes a good story in your opinion? Please comment in this issue what you think a story needs before it can be considered as done.