Skip to content

Commit

Permalink
fix(ui5-datepicker): icon color in pressed state (#63)
Browse files Browse the repository at this point in the history
The correct selector, defining the icon`s color,
was not used to be applied.
  • Loading branch information
ilhan007 authored Feb 15, 2019
1 parent 5212a87 commit a03a51a
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions packages/main/src/themes/base/DatePicker.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@
:host(ui5-datepicker) {
display: inline-block;
width: 100%;

& ui5-input ui5-icon {
color: @sapUiContentIconColor;
outline: none;

&:active {
background-color: @sapUiButtonLiteActiveBackground;
color: @sapUiButtonActiveTextColor;
}
}
}

// required for browsers without native shadow dom
Expand All @@ -33,9 +23,15 @@ ui5-datepicker {
}

.sapWCDPIcon {
color: @sapUiContentIconColor;
width: @sap_wc_dp_icon_width;
cursor: pointer;
color: @sapUiContentIconColor;
outline: none;

&:active {
background-color: @sapUiButtonLiteActiveBackground;
color: @sapUiButtonActiveTextColor;
}

&.sapWCDPIconPressed,
&.sapWCDPIconPressed:active {
Expand All @@ -46,9 +42,4 @@ ui5-datepicker {
&:not(.sapWCDPIconPressed):not(:active):hover {
background: @sapUiButtonLiteHoverBackground;
}

&:active {
background-color: @sapUiButtonLiteActiveBackground;
color: @sapUiButtonActiveTextColor;
}
}

0 comments on commit a03a51a

Please sign in to comment.