-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(Tag): add pointer on hover if component is interactive #7839
feat(Tag): add pointer on hover if component is interactive #7839
Conversation
Deploy preview for carbon-elements ready! Built with commit 6922f53 |
Deploy preview for carbon-components-react ready! Built with commit 6922f53 https://deploy-preview-7839--carbon-components-react.netlify.app |
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.
Should we also add a bg hover color, and maybe focus state for interactive as well? Since it'll be clickable/keyboard accessible. We have a bg hover color for the x
in the filterable tag, I would expect it to be the same color for interactive tag.
this is only restoring a reported regression in pointer styles (the tags remain keyboard inaccessible, keeping the current behavior). I don't have the context from the Slack conversation referenced in the original ticket but from what I understand, those style changes have not been specced out yet. but if we want to roll in the regression fix and the interactive style updates together I will need a spec from design. is that how we should proceed? |
yeah I reached out to her about this and I'm watching the thread. not sure if this means this regression fix needs to be blocked |
@emyarod Looks like @aagonzales has given this the go-ahead. Hover looks good, but doesn't seem to be focusable via keyboard. Should we forward any |
yeah I'm currently discussing potential hover/active states for interactive tags with her. this PR was initially to restore the reported regression for hover state but depending on the discussions then more style and functionality will need to be introduced |
d81cf95
to
248029e
Compare
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.
Perfect, I think the hovers are a nice addition. Thanks for adding those!
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.
Looks great! 🔥
248029e
to
ad2da9d
Compare
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.
LGTM 👍 ✅
ad2da9d
to
6922f53
Compare
Closes #7592
This PR adds a pointer cursor on hover when an
onClick
handler is supplied to the Tag componentTesting / Reviewing
Ensure that the interactive tag example changes cursor on hover