Skip to content

feat: Allow custom colors in Tag's content#1283

Merged
arkadiy93 merged 1 commit into
mainfrom
feat/expandTagColorsSelection
May 11, 2026
Merged

feat: Allow custom colors in Tag's content#1283
arkadiy93 merged 1 commit into
mainfrom
feat/expandTagColorsSelection

Conversation

@arkadiy93

Copy link
Copy Markdown
Contributor

Azure DevOps links

User story

Copilot AI review requested due to automatic review settings May 8, 2026 13:50

Copilot AI left a comment

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.

Pull request overview

This PR extends the Tag molecule to support overriding the default (theme-derived) content colors, enabling consumers to provide custom text and icon colors while keeping existing color variants for the background.

Changes:

  • Added textColor and iconColor props to Tag and wired them into the styled Container.
  • Updated the Tag Storybook configuration to expose the new color controls and added a new example story.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/molecules/Tag/Tag.tsx Adds optional textColor / iconColor props and applies them to the rendered text and icon SVG fill.
src/molecules/Tag/Tag.stories.tsx Exposes new props in controls and adds a story demonstrating custom text and icon colors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/molecules/Tag/Tag.tsx
@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% (🎯 100%) 17392 / 17392
🔵 Statements 100% (🎯 100%) 17392 / 17392
🔵 Functions 100% (🎯 100%) 1283 / 1283
🔵 Branches 100% (🎯 100%) 4457 / 4457
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/molecules/Tag/Tag.tsx 100% 100% 100% 100%
Generated in workflow #2310 for commit dc03857 by the Vitest Coverage Report Action

@arkadiy93 arkadiy93 requested a review from aslakihle May 11, 2026 06:12
@arkadiy93 arkadiy93 marked this pull request as ready for review May 11, 2026 06:12
@arkadiy93 arkadiy93 requested a review from a team as a code owner May 11, 2026 06:12

@aslakihle aslakihle left a comment

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.

😎

@arkadiy93 arkadiy93 merged commit 271ac21 into main May 11, 2026
14 of 15 checks passed
@arkadiy93 arkadiy93 deleted the feat/expandTagColorsSelection branch May 11, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants