feat(ui): migrate colors to semantic tokens in sharedV2 folder#16861
Conversation
|
Linear: CAT-1669 |
|
✅ Meticulous spotted visual differences in 94 of 1606 screens tested, but all differences have already been approved: view differences detected. Meticulous evaluated ~9 hours of user flows against your PR. Last updated for commit |
Bundle ReportChanges will increase total bundle size by 624 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: datahub-react-web-esmAssets Changed:
Files in
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
3009b24 to
b88513d
Compare
v-tarasevich-blitz-brain
left a comment
There was a problem hiding this comment.
I have a few non-blocking suggestions about tokens. It can be improved in the follow-ups
| }>` | ||
| align-items: center; | ||
| background-color: white; | ||
| background-color: ${(props) => props.theme.colors.bgSurface}; |
There was a problem hiding this comment.
i see it was white so maybe we can use just bg?
| const IconsWrapper = styled.div` | ||
| align-items: center; | ||
| color: ${ANTD_GRAY[10]}; | ||
| color: ${(props) => props.theme.colors.text}; |
There was a problem hiding this comment.
let's use just icon
| <Container variant={variant}> | ||
| <svg width="200" height="200" viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
| <rect width="200" height="200" rx="100" fill="#F9FAFC" /> | ||
| <rect width="200" height="200" rx="100" fill={theme.colors.bgSurface} /> |
There was a problem hiding this comment.
I think it's better to use transparent here
| :hover { | ||
| color: ${REDESIGN_COLORS.WHITE}; | ||
| background-color: ${(props) => props.theme.styles['primary-color']}; | ||
| color: ${(props) => props.theme.colors.bg}; |
There was a problem hiding this comment.
let's use textBrandOnBgFill
| &:hover { | ||
| color: ${REDESIGN_COLORS.WHITE}; | ||
| background-color: ${(props) => props.theme.styles['primary-color']}; | ||
| color: ${(props) => props.theme.colors.bg}; |
There was a problem hiding this comment.
textBrandOnBgFill
| type="ghost" | ||
| deg={isOpen ? 90 : 0} | ||
| icon={<ChevronRightIcon style={{ color: 'black' }} />} | ||
| icon={<ChevronRightIcon style={{ color: theme.colors.text }} />} |
There was a problem hiding this comment.
let's use just icon
|
|
||
| const PropagateThunderbolt = styled(ThunderboltOutlined)` | ||
| color: rgba(0, 143, 100, 0.95); | ||
| color: ${(props) => props.theme.colors.textSuccess}; |
There was a problem hiding this comment.
can we use iconSuccess here? it has green200 instead of green300
| :hover { | ||
| cursor: pointer; | ||
| color: ${REDESIGN_COLORS.LINK_HOVER_BLUE}; | ||
| color: ${(props) => props.theme.colors.hyperlinks}; |
There was a problem hiding this comment.
textBrand?
|
|
||
| :hover { | ||
| color: ${REDESIGN_COLORS.LINK_HOVER_BLUE}; | ||
| color: ${(props) => props.theme.colors.hyperlinks}; |
There was a problem hiding this comment.
textBrand?
| }, | ||
| })); | ||
|
|
||
| const renderWithTheme = (ui: React.ReactElement) => render(<CustomThemeProvider>{ui}</CustomThemeProvider>); |
There was a problem hiding this comment.
can it be usable in other tests? perhaps we can move it in some utils for tests
Linear ticket:
https://linear.app/acryl-data/issue/CAT-1659/update-colors-to-semantic-tokens-in-shared-folder