Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As far as I can see with simple testing, component.getStyle() right now only returns the styles of the currently active media query.
just by doing
I can see that if I have an element with base styles (applied on the desktop view) and other styles applied on mobile view; it will only return the styles of the currently active media query; meaning if I'm on desktop view, it will only return those styles... and if I switch to mobile view, it will only return those styles.
Is there a way to get ALL media styles of an element at once? I notice on the docs that the
getStyle()
method allows for{opts,optsAdd}
but I don't know what those do.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions