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
Fixes a regression that happened when we switched the sidenav away from the animations module. The specificity of the selector that shows the sidenav was decreased which meant that the RTL styles were overriding it.
Fixesangular#30422.
)
Fixes a regression that happened when we switched the sidenav away from the animations module. The specificity of the selector that shows the sidenav was decreased which meant that the RTL styles were overriding it.
Fixes#30422.
(cherry picked from commit 04ae202)
Is this a regression?
The previous version in which this bug was not present was
19.0.4
Description
<mat-drawer position="end">
is broken in RTL (right-to-left)Reproduction
StackBlitz link: https://stackblitz.com/edit/gjdrwzbw?file=package.json,src%2Findex.html,src%2Fexample%2Fsidenav-autosize-example.html
Steps to reproduce:
sidenav-autosize-example.html
addposition="end"
to<mat-drawer>
index.html
adddir="rtl"
to the<html>
, then reload StackBlitz's embedded browser (updating index.html doesn't auto-reload)v19.0.0
.ng update @angular/material
(this will update tov19.1.2
).ng serve
and click "Toggle sidenav" → it doesn't work(bug was introduced in
v19.0.5
https://github.com/angular/components/pull/30235/files)This is also reproducible on https://ng-comp-devapp.web.app/drawer (Switch to RTL → Click "Toggle End Side Drawer" → doesn't work.)
If you inspect the
<mat-drawer>
styles, you'll notice that this happens because the[rtl]
styles are overriding thetransform: none
:This isn't the case in LTR (left-to-right), where
transform: none
is correctly applied when the drawer is opened:Expected Behavior
<mat-drawer>
should work in RTL (right-to-left)Actual Behavior
<mat-drawer position="end">
is broken in RTL (right-to-left)Environment
19.1.4
19.1.2
Chrome
The text was updated successfully, but these errors were encountered: