Skip to content

Commit

Permalink
fix(DateInput,TimeInput): adjust native browser controls icon position
Browse files Browse the repository at this point in the history
  • Loading branch information
patricia0817 authored and cipak committed Mar 31, 2022
1 parent be778a9 commit b140129
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/inputs/DateInput/DateInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ $C: #{$WEBEX_COMPONENTS_CLASS_PREFIX}-date-input;
.#{$C} {
input[type="date"] {
position: relative;
padding-left: 2.5rem;
padding-left: 2rem;

&::-webkit-calendar-picker-indicator {
position: absolute;
left: -1rem;
margin: 0 0 0.25rem 0;
padding: 0;
left: 0.75rem;
filter: var(--wxc-date-input--calendar-picker-indicator--filter);
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/components/inputs/TimeInput/TimeInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ $C: #{$WEBEX_COMPONENTS_CLASS_PREFIX}-time-input;

&::-webkit-calendar-picker-indicator {
position: absolute;
left: -0.1rem;
margin: 0 0 0.25rem 0;
padding: 0;
left: 0.75rem;
filter: var(--wxc-date-input--calendar-picker-indicator--filter);
}
}
Expand Down

0 comments on commit b140129

Please sign in to comment.