Skip to content

Commit

Permalink
remove hover styles on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Sep 24, 2024
1 parent 6ec0870 commit 1def91a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/components/SDatePickerBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,16 @@ function getFormatter(fmt: Intl.DateTimeFormat, type?: string) {
transition: background-color 0.25s;
border-radius: 4px;
&:hover:not(:disabled),
&:focus-visible:not(:disabled) {
background-color: var(--c-bg-mute-1);
}
@media (hover: hover) and (pointer: fine) {
&:hover:not(:disabled) {
background-color: var(--c-bg-mute-1);
}
}
&:active:not(:disabled) {
background-color: var(--c-bg-mute-2);
}
Expand Down Expand Up @@ -480,8 +485,10 @@ function getFormatter(fmt: Intl.DateTimeFormat, type?: string) {
cursor: pointer;
border-radius: 4px;
&:hover {
background-color: var(--c-bg-info-dimm-a2);
@media (hover: hover) and (pointer: fine) {
&:hover {
background-color: var(--c-bg-info-dimm-a2);
}
}
&.today:not(.selected) {
Expand Down

0 comments on commit 1def91a

Please sign in to comment.