Skip to content

feat(ui): migrate colors to semantic tokens in sharedV2 folder#16861

Merged
purnimagarg1 merged 5 commits into
masterfrom
pg--cat-1659-update-semantic-tokens-shared-folder
Apr 10, 2026
Merged

feat(ui): migrate colors to semantic tokens in sharedV2 folder#16861
purnimagarg1 merged 5 commits into
masterfrom
pg--cat-1659-update-semantic-tokens-shared-folder

Conversation

@purnimagarg1
Copy link
Copy Markdown
Collaborator

@github-actions
Copy link
Copy Markdown
Contributor

Linear: CAT-1669

@alwaysmeticulous
Copy link
Copy Markdown

alwaysmeticulous Bot commented Mar 31, 2026

✅ 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 d8af654 fix issue found from meticulous. This comment will update as new commits are pushed.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Bundle Report

Changes will increase total bundle size by 624 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
datahub-react-web-esm 22.71MB 624 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: datahub-react-web-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-*.js 624 bytes 12.46MB 0.01%

Files in assets/index-*.js:

  • ./src/app/sharedV2/cards/EntityCountCard.tsx → Total Size: 2.3kB

  • ./src/app/sharedV2/tags/DomainLink.tsx → Total Size: 2.28kB

  • ./src/app/lineageV2/LineageEntityNode/SchemaFieldNodeContents.tsx → Total Size: 10.22kB

  • ./src/app/sharedV2/search/DownloadButton.tsx → Total Size: 667 bytes

  • ./src/app/sharedV2/icons/InfoPopover.tsx → Total Size: 666 bytes

  • ./src/app/sharedV2/forms/FieldLabel.tsx → Total Size: 998 bytes

  • ./src/app/sharedV2/cards/components.tsx → Total Size: 361 bytes

  • ./src/app/sharedV2/search/EditButton.tsx → Total Size: 536 bytes

  • ./src/app/sharedV2/tags/term/TermContent.tsx → Total Size: 5.82kB

  • ./src/app/sharedV2/buttons/BackButton.tsx → Total Size: 970 bytes

  • ./src/app/sharedV2/tags/TagTermGroup.tsx → Total Size: 7.95kB

  • ./src/app/sharedV2/carousel/HorizontalScroller.tsx → Total Size: 4.28kB

  • ./src/app/sharedV2/icons/PlatformIcon.tsx → Total Size: 2.03kB

  • ./src/app/sharedV2/TimestampPopover.tsx → Total Size: 1.38kB

  • ./src/app/previewV2/NotesIcon.tsx → Total Size: 794 bytes

  • ./src/app/sharedV2/carousel/Carousel.tsx → Total Size: 4.38kB

  • ./src/app/sharedV2/modals/ConfirmationModal.tsx → Total Size: 1.28kB

  • ./src/app/sharedV2/ErrorHandling/ErrorFallback.tsx → Total Size: 3.48kB

  • ./src/app/sharedV2/sidebar/components.tsx → Total Size: 937 bytes

@maggiehays maggiehays added the needs-review Label for PRs that need review from a maintainer. label Mar 31, 2026
@purnimagarg1 purnimagarg1 changed the title feat(ui): migrate colors to semantic tokens in shared folder feat(ui): migrate colors to semantic tokens in sharedV2 folder Apr 1, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

v-tarasevich-blitz-brain

This comment was marked as off-topic.

Copy link
Copy Markdown
Contributor

@v-tarasevich-blitz-brain v-tarasevich-blitz-brain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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} />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use textBrandOnBgFill

&:hover {
color: ${REDESIGN_COLORS.WHITE};
background-color: ${(props) => props.theme.styles['primary-color']};
color: ${(props) => props.theme.colors.bg};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

textBrandOnBgFill

type="ghost"
deg={isOpen ? 90 : 0}
icon={<ChevronRightIcon style={{ color: 'black' }} />}
icon={<ChevronRightIcon style={{ color: theme.colors.text }} />}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use just icon


const PropagateThunderbolt = styled(ThunderboltOutlined)`
color: rgba(0, 143, 100, 0.95);
color: ${(props) => props.theme.colors.textSuccess};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

textBrand?


:hover {
color: ${REDESIGN_COLORS.LINK_HOVER_BLUE};
color: ${(props) => props.theme.colors.hyperlinks};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

textBrand?

},
}));

const renderWithTheme = (ui: React.ReactElement) => render(<CustomThemeProvider>{ui}</CustomThemeProvider>);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it be usable in other tests? perhaps we can move it in some utils for tests

@maggiehays maggiehays added pending-submitter-merge and removed needs-review Label for PRs that need review from a maintainer. labels Apr 9, 2026
@purnimagarg1 purnimagarg1 merged commit aca3fe0 into master Apr 10, 2026
39 checks passed
@purnimagarg1 purnimagarg1 deleted the pg--cat-1659-update-semantic-tokens-shared-folder branch April 10, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-submitter-merge product PR or Issue related to the DataHub UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants