Skip to content

Commit

Permalink
feat(listitem): support [color] and [ink]
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Jul 9, 2024
1 parent 6030077 commit faed7bc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions components/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,20 @@ export default CustomElement
text-decoration: none;
}
:host(:where([color])) {
background-color: rgb(var(--mdw-bg));
color: rgb(var(--mdw-ink));
}
:host(:is([color="none"],[color="transparent"])) {
background-color: transparent;
color: inherit;
}
:host([ink]) {
color: rgb(var(--mdw-ink));
}
:host([href]) {
cursor: pointer;
}
Expand Down

0 comments on commit faed7bc

Please sign in to comment.