Skip to content

Commit

Permalink
fix(ui5-tag): correct hover background color for Set 2 Color Scheme 9 (
Browse files Browse the repository at this point in the history
  • Loading branch information
s-todorova authored Nov 29, 2024
1 parent 1558499 commit 1b2eaed
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/main/src/themes/Tag.css
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,16 @@
color: var(--ui5-tag-set2-color-scheme-9-color);
}

:host([interactive][design="Set2"][color-scheme="9"]) .ui5-tag-root:hover {
background-color: var(--ui5-tag-set2-color-scheme-9-hover-background);
}

:host([interactive][design="Set2"][color-scheme="9"]) .ui5-tag-root:active {
background-color: var(--ui5-tag-set2-color-scheme-9-active-background);
border-color: var(--ui5-tag-set2-color-scheme-9-active-border);
color: var(--ui5-tag-set2-color-scheme-9-active-color);
}

:host([interactive][design="Set2"][color-scheme="10"]) .ui5-tag-root:hover {
background-color: var(--ui5-tag-set2-color-scheme-10-hover-background);
}
Expand Down
6 changes: 6 additions & 0 deletions packages/main/src/themes/base/Tag-parameters.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@
--ui5-tag-set2-color-scheme-9-background: var(--sapIndicationColor_9b);
--ui5-tag-set2-color-scheme-9-border: var(--sapIndicationColor_9b_BorderColor);

--ui5-tag-set2-color-scheme-9-hover-background: var(--sapIndicationColor_9b_Hover_Background);

--ui5-tag-set2-color-scheme-9-active-color: var(--sapIndicationColor_9_Active_TextColor);
--ui5-tag-set2-color-scheme-9-active-background: var(--sapIndicationColor_9_Active_Background);
--ui5-tag-set2-color-scheme-9-active-border: var(--sapIndicationColor_9_Active_BorderColor);

--ui5-tag-set2-color-scheme-10-color: var(--sapIndicationColor_10);
--ui5-tag-set2-color-scheme-10-background: var(--sapIndicationColor_10b);
--ui5-tag-set2-color-scheme-10-border: var(--sapIndicationColor_10b_BorderColor);
Expand Down
2 changes: 2 additions & 0 deletions packages/main/src/themes/sap_fiori_3_hcb/Tag-parameters.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
--ui5-tag-set2-color-scheme-9-background: var(--sapIndicationColor_9_Background);
--ui5-tag-set2-color-scheme-9-border: var(--sapIndicationColor_9_BorderColor);

--ui5-tag-set2-color-scheme-9-hover-background: var(--sapIndicationColor_9_Hover_Background);

--ui5-tag-set2-color-scheme-10-color: var(--sapIndicationColor_10_TextColor);
--ui5-tag-set2-color-scheme-10-background: var(--sapIndicationColor_10_Background);
--ui5-tag-set2-color-scheme-10-border: var(--sapIndicationColor_10_BorderColor);
Expand Down
2 changes: 2 additions & 0 deletions packages/main/src/themes/sap_fiori_3_hcw/Tag-parameters.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
--ui5-tag-set2-color-scheme-9-background: var(--sapIndicationColor_9_Background);
--ui5-tag-set2-color-scheme-9-border: var(--sapIndicationColor_9_BorderColor);

--ui5-tag-set2-color-scheme-9-hover-background: var(--sapIndicationColor_9_Hover_Background);

--ui5-tag-set2-color-scheme-10-color: var(--sapIndicationColor_10_TextColor);
--ui5-tag-set2-color-scheme-10-background: var(--sapIndicationColor_10_Background);
--ui5-tag-set2-color-scheme-10-border: var(--sapIndicationColor_10_BorderColor);
Expand Down
2 changes: 2 additions & 0 deletions packages/main/src/themes/sap_horizon_hcb/Tag-parameters.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
--ui5-tag-set2-color-scheme-9-background: var(--sapIndicationColor_9_Background);
--ui5-tag-set2-color-scheme-9-border: var(--sapIndicationColor_9_BorderColor);

--ui5-tag-set2-color-scheme-9-hover-background: var(--sapIndicationColor_9_Hover_Background);

--ui5-tag-set2-color-scheme-10-color: var(--sapIndicationColor_10_TextColor);
--ui5-tag-set2-color-scheme-10-background: var(--sapIndicationColor_10_Background);
--ui5-tag-set2-color-scheme-10-border: var(--sapIndicationColor_10_BorderColor);
Expand Down
2 changes: 2 additions & 0 deletions packages/main/src/themes/sap_horizon_hcw/Tag-parameters.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
--ui5-tag-set2-color-scheme-9-background: var(--sapIndicationColor_9_Background);
--ui5-tag-set2-color-scheme-9-border: var(--sapIndicationColor_9_BorderColor);

--ui5-tag-set2-color-scheme-9-hover-background: var(--sapIndicationColor_9_Hover_Background);

--ui5-tag-set2-color-scheme-10-color: var(--sapIndicationColor_10_TextColor);
--ui5-tag-set2-color-scheme-10-background: var(--sapIndicationColor_10_Background);
--ui5-tag-set2-color-scheme-10-border: var(--sapIndicationColor_10_BorderColor);
Expand Down

0 comments on commit 1b2eaed

Please sign in to comment.