swisspost / design-system

The Swiss Post Design System pattern library for a consistent and accessible user experience across the web platform.
https://design-system.post.ch
Apache License 2.0
106 stars 13 forks source link

Definition of done for a story #1749

Closed gfellerph closed 3 months ago

gfellerph commented 9 months ago

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.

gfellerph commented 9 months ago
alizedebray commented 9 months ago
oliverschuerch commented 9 months ago

@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:

oliverschuerch commented 9 months ago

@alizedebray

alizedebray commented 9 months ago

@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).

alizedebray commented 9 months ago
imagoiq commented 9 months ago

Quick note about tsx, I think this issue is linked: https://github.com/swisspost/design-system/issues/1774

oliverschuerch commented 6 months ago

@gfellerph Is this ticket still needed or should we add a docs page about it? Could it be done by the PiBs Guys?

gfellerph commented 6 months ago

@oliverschuerch, this should rather go into the contribution.md file, but can also be a PIBS task.

davidritter-dotcom commented 5 months ago

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.

imagoiq commented 5 months ago

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 .

b1aserlu commented 4 months ago