csnx
csnx copied to clipboard
Use common `Space` type across components
What are you changing?
- Use the common
Space
type in components that accept spacing values as props. - Fixes a bug where spacing styles are not applied if
space.0
is used due to0
being falsy. - Update
Stack
stories to better show how spacing is applied. - Expands
Inline
andStack
stories to include examples of all spacing values.
Why?
- It removes a small amount of duplication and avoids having to update spacing values in multiple places. New spacing values were added last year, but some components still lack support for these as their types were not updated at the same time.