-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix fork button #6223
Fix fork button #6223
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6223 +/- ##
=========================================
Coverage ? 38.83%
=========================================
Files ? 355
Lines ? 50256
Branches ? 0
=========================================
Hits ? 19518
Misses ? 27909
Partials ? 2829 Continue to review full report at Codecov.
|
Still looks kind of weird, I'd fix the disabled CSS to use something like |
Also, I think some manual styling to make |
After messing with CSS for a bit, this is what I came up with. Note that the right-button to get to forks is still available and the cursor is a pointer like normal. |
Signed-off-by: jolheiser <[email protected]>
I'd change the disabled class to something a bit more more generic like Some lightly tested suggestions (the margin change on the label makes border-right on the left button show). I'm sure more improvements are possible (the color/box-shadow change seems unneccessary): .repo-buttons .disabled-repo-button .label {
opacity: .5;
}
.repo-buttons .disabled-repo-button a.button {
opacity: .5;
cursor: not-allowed;
pointer-events: none;
}
.repo-buttons .disabled-repo-button a.button:hover {
background: none !important;
color: rgba(0,0,0,.6) !important;
box-shadow: 0 0 0 1px rgba(34,36,38,.15) inset !important;
}
.repo-buttons .button > .label {
border-left: none !important;
margin: 0 !important;
} |
Signed-off-by: jolheiser <[email protected]>
I left |
Signed-off-by: jolheiser <[email protected]>
Okay, updated. Thanks for the input, @silverwind |
Conflict |
Resolved |
@techknowlogick GTM |
Fixes #6222
When disabling only the first part, I didn't like how semantic displayed it.
So instead I moved the
basic
class into an if-else.It appears
basic
when a user can fork (no change from existing style)It appears normal (but
disabled
) if they cannot fork. (image below)There was also the case of a non-signed in user, which is why this is a separate if-else within the element to avoid any doubled up classes in favor of another logic flow.