-
-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Make toggleLogKeep button primary #8178
Conversation
This matches the appearance in earlier Jenkins versions, and makes the button more visible. The button doesn’t have any associated more primary button, nor much else to draw attention to it (it’s just kind of floating on the page).
Yay, your first pull request towards Jenkins core was created successfully! Thank you so much! |
The keep this build forever button becoming light gray was definitely surprising. For additional context we have upgraded our instance from As mentioned in the PR, I believe the change made by b7b37d5 is a mistake, given #7203 has 14 commits and probably involves a lot of search and replaces, I guess it was easy to miss. |
It was intentionally changed here: I think there's a lack of contrast on the default theme for non primary buttons that is making it more of an issue. It's not really a primary action as-in that's what people go to the page to do, so we don't really want the users eye drawn to it when they load the page. Looking at the page the primary button really pulls you to look at it. |
+1 to this really. I’d avoid using the primary class for this button as it’s a rarely used action. The secondary buttons do need some contrast work. |
Thanks for the PR @lucaswerkmeister, but I'm with Jan and Tim, the change proposed wouldn't make a good addition. |
Then I look forward to that getting fixed more generally. |
This matches the appearance in earlier Jenkins versions, and makes the button more visible. The button doesn’t have any associated more primary button, nor much else to draw attention to it (it’s just kind of floating on the page).
No associated Jira issue.
Testing done
I added the


jenkins-button--primary
class in dev tools, on a random build in Wikimedia’s CI infrastructure.Before:
After:
(I’m just assuming that
primary="true"
will result in that class being added, I haven’t set up a local test environment.)Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
CC @janfaracik, who had added the
primary="false"
in b7b37d5 (part of #7203) – I’m not sure if it was intentional or just part of a large-scale update of all sorts of buttons. Also CC @hashar who helped digging up the relevant code :)Before the changes are marked as
ready-for-merge
:Maintainer checklist