design-system
design-system copied to clipboard
[component]: Grid
Description
Description
Open issues:
Design:
- [ ] New font
- [ ] Spacing
Tokens:
- [ ] Typography tokens
Design
https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=26-51
Tokens
- [ ] Tokens for this component are ready
Tasks
### 💻 Tasks
- [ ] Create a POC to discover any possible issues with the breakpoints and/or tokens
- [ ] CSS implementation
- [ ] Documentation in Storybook
- [ ] End to end tests
- [ ] Visual regression tests
- [ ] Design review
Should we copy over the bootstrap grid and use tokens to override the bootstrap vars? Should we do a custom implementation that is close enough to bootstrap for minimal breaking changes?
- Could be challenging to merge the bootstrap styles/mixins with tokens
- Copy bootstrap grid into codebase would be the best approach
- Mobile uses only 6 columns
- There are 5 breakpoints instead of 3
As discussed today, implement breakpoints component tokens that have separate breakpoints for grid (XS, SM, MD, LG, XL) and components (Mobile, Tablet, Desktop).
New resolution: https://github.com/orgs/swisspost/projects/3/views/47?pane=issue&itemId=81612717