-
Notifications
You must be signed in to change notification settings - Fork 193
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
Fixes #981 - adding a link for the labels in individual issue page #1081
Conversation
Functionally, this is great! I think we need to tweak the design though, We can override the opacity 0.7 that's getting inherited, I think it would be better as 1. And probably the underline can just be white instead of black. Can you also add an Intern test to this PR, so we don't break this in a refactor at some point in the future? |
@deepthivenkat good 👍 But I think, you can keep the default className and replace <a
href="/issues?q=label:<%= label.remoteName %>"
class="wc-Label wc-Label--badge js-Label"
data-remotename="<%= label.remoteName %>"
title="Labels : <%= label.name %>"
style="background-color:#<%=label.color%>"
>
<%= label.name %>
</a> We need to add |
@deepthivenkat ping |
… underline color for hover event
@miketaylr @magsout I have to make the underline color as white. This is normally done by adding text-decoration-color property which is deprecated. Instead I have made use of border-bottom-color property for hover event. |
So it turns out this isn't deprecated, but is only supported in Firefox and Safari (with a prefix). |
Attaching a gif to show the css changes r? @magsout |
I don't think we want the labels to change size when they're hovered over, it's sort of jarring. Also the gray and yellow text doesn't look very good (it's hard for me to read). |
@miketaylr how about now? |
Much better! Why are we changing the text color from white to gray? |
@miketaylr Grey was the default color. The CSS property used for font color: color: inherit |
Ah, gotcha. This looks better to me -- let's let @magsout review. :) |
Oki! |
Ah, I'm sorry -- I goofed here. We intentionally changed the color from white in #1094. >___< |
No problem! changed it back to grey |
4b9a40b
to
935ce6d
Compare
I think previous style is better:
I have remove, border and decrease font-size: .wc-Labels {
display: inline-block;
font-size: .8rem;
font-weight: 700;
border-color: transparent;
opacity: .7;
text-decoration: none;
color: inherit;
margin-left: .5em;
padding: 0.2em;
border-radius: 4px;
} |
935ce6d
to
7381a91
Compare
@magsout agreed, seems nicer. |
Let's go ahead and merge this, thanks @deepthivenkat! |
r? @miketaylr