Skip to content

Interactive IssueLabelToken does not render any hover effects #3072

Closed
@iansan5653

Description

@iansan5653

Description

The Token component gets a darker background and a box shadow when it is interactive and hovered over. The IssueLabelToken is a variant of this component that should, to the extent possible, match the Token component and work well with it. However, IssueLabelToken does not show any hover states when it is interactive, making it look broken next to Token.

I can see why it would be difficult to show a different background color on hover because the label has a hardcoded user-controlled background color, but we should at least show the box shadow on hover to make it match the Token.

🎬 Video alt text: A screen capture showing a mouse pointer hovering over items in a set of tokens. Each token shows a mild shadow and a darker background on hover except for the tokens representing labels, which only show indicate interactivity by showing a 'click' mouse pointer.

Screen.Recording.2023-03-23.at.3.52.36.PM.mov

Steps to reproduce

Render an interactive IssueLabelToken, ie by adding as="button" or as="a":

<IssueLabelToken text="good first issue" fillColor="#0366d6" as="button" />

Version

v35.22.0

Browser

Chrome

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions