-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new spacing tokens + spacing docs + margin props for input components #1812
base: master
Are you sure you want to change the base?
Conversation
|
3ea6398
to
82f42a7
Compare
82f42a7
to
ac2ee2d
Compare
@@ -225,6 +225,11 @@ type ColorPickerOwnProps = { | |||
* If true, alpha slider will be rendered. Defaults to false | |||
*/ | |||
withAlpha?: boolean | |||
|
|||
/** | |||
* Margin around the component. Accepts a `Spacing` token. See token values and example usage in [this guide](/#layout-spacing). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should put the full link here, so it works in IDEs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can do that but then it'll link to the deployed page even when developing, I think it's better practice to only use full urls when it navigates outside the page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, I like it so far :) It would be good to have a visual test for all these margins. I suggest to make a large single test (like with |
ade04cc
to
584d176
Compare
584d176
to
7684341
Compare
) | ||
} | ||
|
||
export default SpacingTokens |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also put here all components with some fixed spacing value to test that it works for all of them. something like:
<Button margin="space4">Button</Button>
<NumberInput margin="space4">NumberInput</NumberInput>
<TextInput margin="space4">TextInput</TextInput>
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm when the already mentioned issues are fixed.
Nice work!
INSTUI-4387
INSTUI-4367
test plan: