You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: fix not being able to test MDC density in RTL (#21398)
Our dev app is set up so that the density styles are set on the `body` while the `dir` is
set only around the content. The problem is that MDC's mixins output density styles for
RTL in the format `[dir='rtl'] .density .foo` which means that the directionality has to be
a level above the density class or we won't get an accurate representation of how the
components look. This threw me off for a while earlier today, because I noticed that
the MDC slide toggle didn't behave correctly in RTL.
These changes fix the issue by moving the `dir` a level up and applying the density class
in a couple of places.
(cherry picked from commit 69b0a72)
0 commit comments