-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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 badges appearance #9155
Fix badges appearance #9155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, (checked in chrome and safari, looks fine to me)
@@ -39,7 +39,7 @@ THE SOFTWARE. | |||
</st:attribute> | |||
</st:documentation> | |||
<j:if test="${attrs.badge != null}"> | |||
<span class="jenkins-badge alert-${attrs.badge.severity} ${attrs.class?:''}" tooltip="${attrs.badge.tooltip}"> | |||
<span class="jenkins-badge jenkins-!-${attrs.badge.severity}-color ${attrs.class?:''}" tooltip="${attrs.badge.tooltip}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the semantic difference between the two classes here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alert modifier class feels misused here as the badge isn't an alert (hence I missed this in the alert changes MR). Meanwhile the colour classes are relatively widely used in Jenkins already and are generic classes to modify colours of an element, button behaves the same way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/label ready-for-merge
This PR is now ready for merge. We will merge it after ~24 hours if there is no negative feedback.
Please see the merge process documentation for more information about the merge process.
Thanks!
Broken by #9115 - See #9115 (comment).
This PR fixes the badge appearance on light/dark modes.
Before
After
Testing done
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@jenkinsci/sig-ux
Before the changes are marked as
ready-for-merge
:Maintainer checklist