Skip to content

fix(color): Applied soften colors globally#1776

Open
amritkv wants to merge 1 commit into
eclipse-sw360:mainfrom
siemens:chore/soften_license_clearing_color
Open

fix(color): Applied soften colors globally#1776
amritkv wants to merge 1 commit into
eclipse-sw360:mainfrom
siemens:chore/soften_license_clearing_color

Conversation

@amritkv
Copy link
Copy Markdown
Member

@amritkv amritkv commented Jun 5, 2026

Soften license clearing state badge colors

What

Override Bootstrap's default .bg-success, .bg-danger, .bg-warning, and .bg-secondary background colors with softer, solid SW360 values for the project/release state badges (the PS/CS capsules) in globals.css

Why

The previous custom overrides weren't applying — the badges rendered in Bootstrap's harsh default colors instead of the intended softer palette.

Root cause

The custom .bg-success rule and Bootstrap's .bg-success both used !important with identical specificity (0,1,0). With importance and specificity tied, the cascade falls back to source order, and Bootstrap's stylesheet loads last in the final <head>, so Bootstrap won.

How

Scoped each override to .badge.bg-*, raising specificity to (0,2,0) so it beats Bootstrap's (0,1,0) on specificity directly — making the fix independent of stylesheet import order.

Closes : #1775

@amritkv amritkv requested review from GMishx and deo002 as code owners June 5, 2026 17:50
@amritkv amritkv force-pushed the chore/soften_license_clearing_color branch from aae7478 to 7583003 Compare June 5, 2026 17:54
Signed-off-by: Amrit Kumar Verma <amrit.verma@siemens.com>
@amritkv amritkv force-pushed the chore/soften_license_clearing_color branch from 7583003 to 5366591 Compare June 5, 2026 17:57
Comment thread src/styles/globals.css

.bg-success {
background-color: #68c17c !important;
.badge.bg-success {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why disturb the existing bg-success?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@GMishx, this is because it is the common class for multiple places where pill like badges are used. And everywhere bootstrap is overriding our custom soft touch colors with its very sharp and bright default colors.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My point being, this would remove the override we have for .bg-success class. Why not create another override of .badge.bg-success along with .bg-success?

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.

fix(color): Apply soften color for license clearing PS/CS capsules

2 participants