-
Have others run into this issue? Expected behaviorWhen I write this html: <md-outlined-button>Text</md-outlined-button>
<style>
md-outlined-button {
&:focus-visible {
--md-outlined-button-outline-color: var(--md-sys-color-primary);
}
}
</style> I expect it to behave the same way it would on a standard html
Any thoughts/suggestions greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hm, I think this might be a bigger shadow dom problem. It doesn't look like As an aside, what's your use case for styling |
Beta Was this translation helpful? Give feedback.
Hm, I think this might be a bigger shadow dom problem. It doesn't look like
:host(:focus-visible)
matches when the inner element matches it. Here's a repro: https://lit.dev/playground/#gist=4b7609b02c8d57905ba9c23910a39453As an aside, what's your use case for styling
:focus-visible
? The button's focus ring provides a primary color outline around the element that does what you're describing.