Skip to content

Commit

Permalink
Merge pull request #1249 from chanzuckerberg/diedra/focus/fix-transition
Browse files Browse the repository at this point in the history
chore(clickable-style): make transition target more specific
dierat authored Aug 31, 2022

Verified

This commit was signed with the committer’s verified signature.
booc0mtaco Holloway
2 parents 75d8fcf + d47c301 commit 7d3fb43
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/ClickableStyle/ClickableStyle.module.css
Original file line number Diff line number Diff line change
@@ -22,10 +22,17 @@
border-radius: var(--eds-border-radius-md);
cursor: pointer;
text-decoration: none; /* 4 */
transition: all var(--eds-anim-fade-quick) var(--eds-anim-ease);
transition-property: color, background-color, border-color;
transition-duration: var(--eds-anim-fade-quick);
transition-timing-function: var(--eds-anim-ease);

svg {
--icon-size-default: 2em; /* 5 */
transition: color var(--eds-anim-fade-quick) var(--eds-anim-ease);

@media screen and (prefers-reduced-motion) {
transition: none;
}
}

&:focus {

0 comments on commit 7d3fb43

Please sign in to comment.