-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Layout foundations] Add the border width tokens to the Box component #7601
Comments
Here are our current border color tokens:
|
### WHY are these changes introduced? Part of [#7601](#7601) ### WHAT is this pull request doing? - Adds border with support only with this PR as further exploration is needed to implement border color - Sets the initial border width to `--p-border-width-1` which works currently as all the existing shorthand border properties use that width. Setting to `initial` doesn't work as the browser initial is `medium` which overrides the shorthand width. <details> <summary>Playground code</summary> ```jsx <AlphaStack fullWidth> <Box paddingInlineEnd="10" paddingInlineStart="10" border="divider" borderWidth="1" > test </Box> <Box border="dark" borderWidth="3"> test </Box> <Box border="dark" borderBlockStartWidth="3"> test </Box> <Box border="dark" borderBlockEndWidth="3"> test </Box> <Box border="dark" borderInlineStartWidth="3"> test </Box> <Box border="dark" borderInlineEndWidth="3"> test </Box> <Box border="dark" borderBlockEndWidth="2"> test </Box> <Box border="divider" borderBlockEndColor="border" paddingInlineEnd="10" paddingInlineStart="10" > test </Box> </AlphaStack> ``` </details> Co-authored-by: Kyle Durand <[email protected]>
After discussing with @laurkim and @kyledurand we aligned on removing the shorthand border prop from box. Similar functionality will be supported by a new This will clear the way to add |
Hi! We noticed there hasn’t been activity on this issue in a while. After 30 days, it will close automatically. If it’s still relevant, or you have updates, comment and let us know. And don’t worry, you can always re-open later if needed. |
Add the border width tokens
--p-border-width-1
--p-border-width-2
--p-border-width-3
to the Box component
Ensure that border width accepts colour tokens
The text was updated successfully, but these errors were encountered: