-
Notifications
You must be signed in to change notification settings - Fork 44
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
Tag
- Overflow with longer text fix
#2627
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
This comment was marked as duplicate.
This comment was marked as duplicate.
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.
Commented with another possible option for fixing
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as outdated.
This comment was marked as outdated.
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.
Thanks for tackling this @dchyun ! The solution makes sense to me, and from a design perspective things are looking solid.
packages/components/src/styles/components/form/super-select.scss
Outdated
Show resolved
Hide resolved
@dchyun Thanks for catching this issue! However, to distinguish between Badge and Tag, Tag should always be fully rounded (a pill shape). The current proposed solution (rectangle with a very soft border-radius) does not fit within our visual language. I tested the Figma component and it does what you have proposed, but I don't believe we expected there to be tags that wrapped to this many lines. I'd like design to take a look at this before moving forward to see if there's an alternative solution that lets us keep the pill shape. I've created a Jira ticket to track this work, HDS-4317. |
This comment was marked as outdated.
This comment was marked as outdated.
9730dde
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.
Nice!
@dchyun If you merge in the latest The other visual diff is from the fixes you made in this PR so if those are as expected they can be approved. (Merge in |
7439653
to
340d46a
Compare
Rebased to main and just have the one Percy change needing review from design. |
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.
Fix is good!
Also looks like main needs to be merged in so the multi-select super select percy test updates.
b2f8f94
to
646e063
Compare
Reverting back to draft until @majedelass completes their exploration of the issue from the design side in HDS-4317. Current solution solves issues with inactive, active, and hover states, but overflow still occurs on focus. |
π Summary
If merged, this PR would fix an issue observed in the
Tag
where the dismiss button background overflows the border when the text wraps to multiple lines.π οΈ Detailed description
It was observed in the
Tag
that when the text exceeds 3 lines, the background of the dismiss button obscures the border of the element.The fix provided solves the issue by adding
overflow: hidden
to the tag. When the dismiss button is focused, the focus ring of the button goes outside of theTag
border, so for the:focus
state, theoverflow: hidden
is removed.There are design efforts underway in HDS-4317 to provide more guidance or future changes around this issue. This PR is an immediate fix for the present issue.
πΈ Screenshots
Tag
- BeforeTag
- Afterπ External links
Jira ticket: HDS-3854
π Component checklist
π¬ Please consider using conventional comments when reviewing this PR.