Skip to content

Commit 96d8f33

Browse files
committed
feat: add hover state and transition to interactive UI element styles
1 parent 894c31d commit 96d8f33

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

components/shadow-dom/styles.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ export default css`
1818
color: var(--bg-color);
1919
font-size: 1.2em;
2020
cursor: pointer;
21+
transition: .2s;
22+
23+
&:hover {
24+
background-color: var(--accent-color);
25+
color: #fff;
26+
}
2127
2228
i-con {
2329
display: inline-flex;

0 commit comments

Comments
 (0)