Skip to content

Commit

Permalink
feat: add animation and pointer to button component (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 authored May 21, 2024
1 parent c305690 commit 86b2bbd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/resume-page/button/button.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'animations';

:host {
background-color: var(--sys-color-primary);
border: none;
Expand All @@ -6,6 +8,7 @@
font-size: 1em;
height: 2em;
padding: 0 1em;
cursor: pointer;

&:hover {
background-color: color-mix(
Expand All @@ -15,4 +18,8 @@
);
color: var(--sys-color-on-primary);
}

@include animations.when-motion {
@include animations.multiple-transitions((background-color, color));
}
}

0 comments on commit 86b2bbd

Please sign in to comment.