-
Notifications
You must be signed in to change notification settings - Fork 536
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
Interactive IssueLabelToken
does not render any hover effects
#3072
Comments
tagging in @lukasoppermann for visibility |
I created a quick prototype for this one as a way for me to experiment with the new I think it needs fine tuning around hue and saturation, as it can easily look muddy by just adding white or black. Unassigning myself for now– maybe @lukasoppermann and I can pair on it a bit. |
👋🏻 @lukasoppermann I'm assigning this your way based on the discussion above, but please give me or @tallys a shout if you're not sure how to fit this in. |
@iansan5653 where do you need a hover for the IssueLabelToken? I think 🤔 this specific component has historically not been interactive. It is more a label that is visible but not one that can be clicked. |
In project board cards, the tokens on the cards can be clicked to filter the view. For example, clicking the
The regular
I actually can't think of any places on GitHub where we render labels that don't respond to clicks. Almost everywhere, clicking a label navigates to the issues index page for that label. |
Okay, yeah, that makes sense. I'll look into @langermank work. However this only covers Primer React, would that be enough? |
👍 I only work in React apps so I can't speak for Rails/VC but I think it's fine for now. React apps do tend to be more interactive/dynamic. |
Description
The
Token
component gets a darker background and a box shadow when it is interactive and hovered over. TheIssueLabelToken
is a variant of this component that should, to the extent possible, match theToken
component and work well with it. However,IssueLabelToken
does not show any hover states when it is interactive, making it look broken next toToken
.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
.Screen.Recording.2023-03-23.at.3.52.36.PM.mov
Steps to reproduce
Render an interactive
IssueLabelToken
, ie by addingas="button"
oras="a"
:Version
v35.22.0
Browser
Chrome
The text was updated successfully, but these errors were encountered: