-
Notifications
You must be signed in to change notification settings - Fork 116
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
Fix evergreen shadow borders and font-size-40 #4220
Changes from all commits
c958a2f
e860ccc
de15fa8
8eb097d
7430760
4c7e0b9
bcbff77
21b28e7
9b65672
56e84d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@twilio-paste/design-tokens": patch | ||
"@twilio-paste/core": patch | ||
--- | ||
|
||
[Design tokens] Added shadow border tokens and font-size-40 token back to evergreen theme |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,6 +248,30 @@ export const decorators = [ | |
</Box> | ||
</Box> | ||
</Theme.Provider> | ||
<Theme.Provider theme="evergreen" disableAnimations customBreakpoints={breakpoints}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added in evergreen so we can catch theme updates in our snapshots to avoid unnecessary breaking changes. |
||
<Box | ||
backgroundColor="colorBackgroundBody" | ||
color="colorText" | ||
padding={context.parameters.padding === false ? "space0" : "space80"} | ||
> | ||
<Story /> | ||
</Box> | ||
</Theme.Provider> | ||
<Theme.Provider theme="evergreen" disableAnimations customBreakpoints={breakpoints}> | ||
<Box | ||
backgroundColor="colorBackgroundBody" | ||
color="colorText" | ||
padding={context.parameters.padding === false ? "space0" : "space20"} | ||
> | ||
<Box | ||
margin={context.parameters.padding === false ? "space0" : "space40"} | ||
padding={context.parameters.padding === false ? "space0" : "space40"} | ||
backgroundColor="colorBackground" | ||
> | ||
<Story /> | ||
</Box> | ||
</Box> | ||
</Theme.Provider> | ||
</Stack> | ||
</RenderPerformanceProfiler> | ||
); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -931,66 +931,70 @@ RowHeaders.storyName = "Row headers"; | |
|
||
export const StickyHeaders = (): React.ReactNode => { | ||
return ( | ||
<Table> | ||
<THead stickyHeader={true}> | ||
<Tr> | ||
<Th>Column 1</Th> | ||
<Th>Column 2</Th> | ||
<Th>Column 3</Th> | ||
</Tr> | ||
<Tr> | ||
<Th>Column 1</Th> | ||
<Th>Column 2</Th> | ||
<Th>Column 3</Th> | ||
</Tr> | ||
</THead> | ||
<TBody> | ||
{[...new Array(40).keys()].map((index) => ( | ||
<Tr key={index}> | ||
<Td>Content</Td> | ||
<Td>Content</Td> | ||
<Td>Content</Td> | ||
<Box maxHeight="size20" overflowY="auto" tabIndex={0}> | ||
<Table> | ||
<THead stickyHeader={true}> | ||
<Tr> | ||
<Th>Column 1</Th> | ||
<Th>Column 2</Th> | ||
<Th>Column 3</Th> | ||
</Tr> | ||
))} | ||
</TBody> | ||
<TFoot> | ||
<Tr> | ||
<Th>Column 1</Th> | ||
<Th>Column 2</Th> | ||
<Th>Column 3</Th> | ||
</Tr> | ||
<Tr> | ||
<Th>Column 1</Th> | ||
<Th>Column 2</Th> | ||
<Th>Column 3</Th> | ||
</Tr> | ||
</TFoot> | ||
</Table> | ||
<Tr> | ||
<Th>Column 1</Th> | ||
<Th>Column 2</Th> | ||
<Th>Column 3</Th> | ||
</Tr> | ||
</THead> | ||
<TBody> | ||
{[...new Array(5).keys()].map((index) => ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<Tr key={index}> | ||
<Td>Content</Td> | ||
<Td>Content</Td> | ||
<Td>Content</Td> | ||
</Tr> | ||
))} | ||
</TBody> | ||
<TFoot> | ||
<Tr> | ||
<Th>Column 1</Th> | ||
<Th>Column 2</Th> | ||
<Th>Column 3</Th> | ||
</Tr> | ||
<Tr> | ||
<Th>Column 1</Th> | ||
<Th>Column 2</Th> | ||
<Th>Column 3</Th> | ||
</Tr> | ||
</TFoot> | ||
</Table> | ||
</Box> | ||
); | ||
}; | ||
|
||
StickyHeaders.storyName = "Sticky headers"; | ||
|
||
export const BorderlessStickyHeaders = (): React.ReactNode => { | ||
return ( | ||
<Table variant="borderless"> | ||
<THead stickyHeader={true}> | ||
<Tr> | ||
<Th>Column 1</Th> | ||
<Th>Column 2</Th> | ||
<Th>Column 3</Th> | ||
</Tr> | ||
</THead> | ||
<TBody> | ||
{[...new Array(40).keys()].map((index) => ( | ||
<Tr key={index}> | ||
<Td>Content</Td> | ||
<Td>Content</Td> | ||
<Td>Content</Td> | ||
<Box maxHeight="size20" overflowY="auto" tabIndex={0}> | ||
<Table variant="borderless"> | ||
<THead stickyHeader={true}> | ||
<Tr> | ||
<Th>Column 1</Th> | ||
<Th>Column 2</Th> | ||
<Th>Column 3</Th> | ||
</Tr> | ||
))} | ||
</TBody> | ||
</Table> | ||
</THead> | ||
<TBody> | ||
{[...new Array(5).keys()].map((index) => ( | ||
<Tr key={index}> | ||
<Td>Content</Td> | ||
<Td>Content</Td> | ||
<Td>Content</Td> | ||
</Tr> | ||
))} | ||
</TBody> | ||
</Table> | ||
</Box> | ||
); | ||
}; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,9 +96,6 @@ props: | |
color-text-new: | ||
value: "#524988" | ||
comment: Color for text indicating a new status. | ||
color-text-neutral: | ||
value: "#1F3D99" | ||
comment: Color for text indicating a neutral status. | ||
|
||
# icon | ||
color-text-icon: | ||
|
@@ -128,9 +125,6 @@ props: | |
color-text-icon-warning: | ||
value: "#DE7548" | ||
comment: Icon color for indicating a warning. | ||
color-text-icon-neutral: | ||
value: "#2952CC" | ||
comment: Icon color for being neutral. | ||
color-text-icon-brand-highlight: | ||
value: "#52BD94" | ||
comment: Segment brand color used for the Segment logo. | ||
|
@@ -153,3 +147,8 @@ props: | |
color-text-user: | ||
value: "#6D2ED1" | ||
comment: Text color for user avatar. | ||
|
||
# primary | ||
color-text-primary: | ||
value: "#3366FF" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @serifluous we hardcoded this value as most other values (including the color-text-link) are hardcoded. No aliases are actually being used. The ones in the alias for palette-blue-60 aren't being referenced. Should we be using aliases in these themes? Would need another refactor if so. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Originally, they should've been, but at this point, we're just leaving them as hex codes |
||
comment: Primary text. |
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.
Added a patch as technically we are fixing tokens not adding anything new