Skip to content
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

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

jumarub
Copy link
Contributor

@jumarub jumarub commented Sep 30, 2024

No description provided.

@ern ern changed the title SAK-50127: Dark mode timer isn’t clearly visible SAK-50127 Samigo timer bar isn’t clearly visible in dark mode Sep 30, 2024
@@ -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">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the class progress is used in just few places:
image

Maybe should check those as well, and if they have the same issue maybe just add the background to the progress class?

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is !important needed?

Copy link
Contributor Author

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

Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor Author

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.

@ern ern merged commit ccb9434 into sakaiproject:master Oct 14, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants