Skip to content

Commit

Permalink
feat(ui5-rating-indicator): SAP Horizon theme implementation (#4173)
Browse files Browse the repository at this point in the history
* feat(ui5-rating-indicator): SAP Horizon theme implementation

* opacity enhaanced
  • Loading branch information
niyap authored Oct 26, 2021
1 parent 7026564 commit daba3f0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/main/src/themes/RatingIndicator.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

:host([disabled]) {
opacity: .6;
opacity: .4;
cursor: initial;
outline: none;
}
Expand All @@ -19,7 +19,8 @@
}

:host([_focused]) {
outline: 1px dotted var(--sapContent_FocusColor);
outline: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);
border-radius: var(--_ui5_rating_indicator_border_radius);
}

.ui5-rating-indicator-root {
Expand Down
3 changes: 3 additions & 0 deletions packages/main/src/themes/base/RatingIndicator-parameters.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:root {
--_ui5_rating_indicator_border_radius: 0px;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:root {
--_ui5_rating_indicator_border_radius: 0.25rem;
}
1 change: 1 addition & 0 deletions packages/main/src/themes/sap_horizon/parameters-bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
@import "../base/PopupsCommon-parameters.css";
@import "../base/ProgressIndicator-parameters.css";
@import "../base/RadioButton-parameters.css";
@import "./RatingIndicator-parameters.css";
@import "../base/Select-parameters.css";
@import "../base/Switch-parameters.css";
@import "./TabContainer-parameters.css";
Expand Down

0 comments on commit daba3f0

Please sign in to comment.