Skip to content

fix: tag - prevent icon shrinking#1284

Merged
arkadiy93 merged 1 commit into
mainfrom
fix/tagStyling
May 13, 2026
Merged

fix: tag - prevent icon shrinking#1284
arkadiy93 merged 1 commit into
mainfrom
fix/tagStyling

Conversation

@arkadiy93
Copy link
Copy Markdown
Contributor

Azure DevOps links

User story

Copilot AI review requested due to automatic review settings May 12, 2026 14:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 adjusts the Tag molecule’s layout styling to ensure icons keep their intended size when the tag is placed in constrained layouts (e.g., inside flex containers).

Changes:

  • Set min-width: fit-content on the Tag container to avoid compressing below its content size.
  • Set flex-shrink: 0 on direct child SVGs to prevent the leading/trailing icon from shrinking under flexbox pressure.

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

@github-actions
Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% (🎯 100%) 17399 / 17399
🔵 Statements 100% (🎯 100%) 17399 / 17399
🔵 Functions 100% (🎯 100%) 1278 / 1278
🔵 Branches 100% (🎯 100%) 4444 / 4444
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/molecules/Tag/Tag.tsx 100% 100% 100% 100%
Generated in workflow #2312 for commit 96f7d3a by the Vitest Coverage Report Action

@arkadiy93 arkadiy93 requested a review from aslakihle May 12, 2026 15:35
@arkadiy93 arkadiy93 marked this pull request as ready for review May 12, 2026 15:36
@arkadiy93 arkadiy93 requested a review from a team as a code owner May 12, 2026 15:36
@yunarch yunarch self-assigned this May 13, 2026
@arkadiy93 arkadiy93 merged commit 3392fb7 into main May 13, 2026
15 checks passed
@arkadiy93 arkadiy93 deleted the fix/tagStyling branch May 13, 2026 10:17
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