Live example SSoT
From a Foundations Open Office Hours agenda:
Correct me if I’m wrong, but we still have to update Pajamas examples to match GitLab UI stories, right? As I’ve been working through the accessibility audits, my assumption is that any change to the component in GitLab UI will mean that updates have to happen in Pajamas too. Any ideas on being able to have one live example SSoT?
Generally at the moment I think just about everything could be affected since one version exists in Storybook in either example or CSF format, and there'd be an example in Pajamas.
Recent example since I was working on auditing breadcrumbs. The separator isn't the same…
GLUI | PJs |
---|---|
![]() |
![]() |
Tabs was even more confusing because there are both stories and examples in GitLab UI, and then examples in Pajamas. I've worked on aligning them, but changes had to be made in all three places.
Another hypothetical example might be where we update the markup in a modal CSF, but then have to update in Pajamas example to match.