Skip to content

Commit

Permalink
fix(ffe-accordion): hovering styles only when using pointer/mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
pethel committed Mar 14, 2024
1 parent 862d82b commit 1034fc2
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions packages/ffe-accordion/less/accordion.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@
outline: none;
color: var(--ffe-v-accordion-primary-color);

&:hover {
.ffe-accordion-item__heading-icon {
transition: fill @ffe-transition-duration @ffe-ease;
color: var(--ffe-v-accordion-secondary-color);
}
@media (hover: hover) and (pointer: fine) {
&:hover {
.ffe-accordion-item__heading-icon {
transition: fill @ffe-transition-duration @ffe-ease;
color: var(--ffe-v-accordion-secondary-color);
}

.ffe-accordion-item__heading-icon-wrapper {
transition: background-color @ffe-transition-duration @ffe-ease;
background-color: var(--ffe-v-accordion-primary-color);
.ffe-accordion-item__heading-icon-wrapper {
transition: background-color @ffe-transition-duration
@ffe-ease;
background-color: var(--ffe-v-accordion-primary-color);
}
}
}

Expand Down Expand Up @@ -96,13 +99,16 @@
&__heading-icon {
color: var(--ffe-v-accordion-primary-color);
}
&:hover {
.ffe-accordion-item__heading-icon {
color: var(--ffe-v-accordion-secondary-color);
}

.ffe-accordion-item__heading-icon-wrapper {
background-color: var(--ffe-v-accordion-primary-color);
@media (hover: hover) and (pointer: fine) {
&:hover {
.ffe-accordion-item__heading-icon {
color: var(--ffe-v-accordion-secondary-color);
}

.ffe-accordion-item__heading-icon-wrapper {
background-color: var(--ffe-v-accordion-primary-color);
}
}
}
}
Expand Down

0 comments on commit 1034fc2

Please sign in to comment.