We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
19.0.4
<mat-drawer position="end"> is broken in RTL (right-to-left)
<mat-drawer position="end">
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
position="end"
<mat-drawer>
index.html
dir="rtl"
<html>
v19.0.0
ng update @angular/material
v19.1.2
ng serve
v19.0.5
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 the transform: none:
[rtl]
transform: none
This isn't the case in LTR (left-to-right), where transform: none is correctly applied when the drawer is opened:
<mat-drawer> should work in RTL (right-to-left)
19.1.4
19.1.2
Chrome
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: