Skip to content

Commit

Permalink
fix(SegmentedButton): add intermediate css variable mappings in order…
Browse files Browse the repository at this point in the history
… to fix styling (#375)
  • Loading branch information
vbersch authored Mar 24, 2020
1 parent 7b05ab9 commit 86e962e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/base/src/styling/CssSizeVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ export const cssVariablesStyles = `
--sapLink_Hover_Color:var(--sapUiLinkHover);
--sapLink_InvertedColor:var(--sapUiLinkInverted);
--sapLink_Active_Color:var(--sapUiLinkActive);
--sapButton_Selected_Background:var(--sapUiSegmentedButtonSelectedBackground);
--sapButton_Selected_TextColor:var(--sapUiSegmentedButtonSelectedTextColor);
--sapButton_Selected_BorderColor:var(--sapUiSegmentedButtonSelectedHoverBorderColor);
--sapContent_ContrastIconColor:var(--sapUiContentContrastIconColor);
--sapButton_Active_Background:var(--sapUiSegmentedButtonActiveBackground);
--sapButton_Active_TextColor:var(--sapUiButtonActiveColor);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ const styles = {
background: ThemingParameters.sapButton_Selected_Background,
color: ThemingParameters.sapButton_Selected_TextColor,
borderColor: ThemingParameters.sapButton_Selected_BorderColor,
'--sapContent_NonInteractiveIconColor': ThemingParameters.sapContent_ContrastIconColor,
// TODO: replace with ThemingParameters.sapContent_ContrastIconColor after ui5-webcomponents upgrade to rc.6
'--sapContent_NonInteractiveIconColor': 'var(--sapUiContentContrastIconColor)',
'$:active': {
background: ThemingParameters.sapButton_Active_Background,
color: ThemingParameters.sapButton_Active_TextColor
Expand Down

0 comments on commit 86e962e

Please sign in to comment.