-
-
Notifications
You must be signed in to change notification settings - Fork 933
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
SAK-50127 Samigo timer bar isn’t clearly visible in dark mode #12931
Conversation
@@ -62,12 +62,12 @@ | |||
<div class="progress-wrapper"> | |||
<div class="timer-title">${ titleMessage }</div> | |||
<div class="progress-wrapper-container"> | |||
<div class="progress"> | |||
<div class="progress sak-bg-4"> |
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.
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.
With the newest push we override the default background color, I checked that the other files also have the same problem
@@ -10,6 +10,10 @@ body{ | |||
scroll-behavior: $scroll-behavior; | |||
} | |||
|
|||
.progress { | |||
background-color: var(--sakai-background-color-4) !important; // Override default progress bar background color |
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.
is !important needed?
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.
since we need to override the default value of the progress bootstrap bar, this will sure apply on 100% of the cases
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.
but i don't think .progress is a bootstrap class? are you sure you need !important? did you test without it? please provide a screenshot
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.
@jumarub using !important is a last resort
always prefer using css specificity first, see https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity#tips_for_handling_specificity_headaches
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.
progress and progress-bar are bootstrap classes for the progress bar component, the sakai class and bootstrap class seem familiar
https://getbootstrap.com/docs/4.0/components/progress/
On the other hand I test it without the !important and it seems to work, so removing the !important is correct.
No description provided.