Access <svg> or <mask> inside <md-radio>? #5529
Answered
by
asyncLiz
alexmeier-19
asked this question in
Q&A
-
I want to access the svg element inside the Component via CSS to adjust the radio button's "line thickness". How can I do that? |
Beta Was this translation helpful? Give feedback.
Answered by
asyncLiz
Mar 18, 2024
Replies: 1 comment 2 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's unlikely. The two concentric circles are considered an icon together, not a separate element like checkbox's icon vs its outline.
A backdoor option is to use
Element.shadowRoot
to access the internals of the radio to make changes. This is risky since future updates may break your patch (for example, we could swap from<svg>
and<mask>
to a CSS-styled<div>
).However, if you don't update often or are willing to take the risk of being broken, it's an option!