Skip to content

Commit 908c10a

Browse files
NakataCodennaydenow
authored andcommitted
fix(ui5-shellbar): apply tertiary button color to cancel button (#12082)
- Added new CSS custom property --_ui5-shellbar_cancel-button-color in parameters file with value sapButton_Lite_TextColor to follow tertiary button styling - Applied the custom property to .ui5-shellbar-cancel-button class for default and hover states Fixes #11957
1 parent c6f29ca commit 908c10a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

packages/fiori/src/themes/ShellBar.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,14 @@ slot[name="profile"] {
283283
--_ui5_button_focused_border: var(--_ui5_shellbar_button_focused_border);
284284
}
285285

286+
.ui5-shellbar-cancel-button{
287+
color: var(--_ui5-shellbar_cancel-button-color);
288+
}
289+
290+
.ui5-shellbar-cancel-button:hover{
291+
color: var(--_ui5-shellbar_cancel-button-color);
292+
}
293+
286294
.ui5-shellbar-image-button {
287295
display: flex;
288296
justify-content: center;

packages/fiori/src/themes/base/ShellBar-parameters.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222
--_ui5-shellbar-content-margin-start: 0.5rem;
2323
--_ui5-shellbar-overflow-button-margin: 0.5rem;
2424
--_ui5-shellbar_separator-color: var(--sapToolbar_SeparatorColor);
25+
--_ui5-shellbar_cancel-button-color: var(--sapButton_Lite_TextColor);
2526
}

0 commit comments

Comments
 (0)