-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
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
Directionality is not implemented for dir="auto" #10186
Labels
area: cdk/bidi
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P2
The issue is important to a large percentage of users, with a workaround
Comments
We've got a TODO for it here. The issue is that in order for us to know what the value is, we have to do a |
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 5, 2021
Adds support for the `auto` value of the `dir` attribute. The value gets resolved to `ltr` or `rtl` based on browser's locale. Fixes angular#10186.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 5, 2021
Adds support for the `auto` value of the `dir` attribute. The value gets resolved to `ltr` or `rtl` based on browser's locale. Fixes angular#10186.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Nov 5, 2021
Adds support for the `auto` value of the `dir` attribute. The value gets resolved to `ltr` or `rtl` based on browser's locale. Fixes angular#10186.
mmalerba
pushed a commit
that referenced
this issue
Nov 15, 2021
Adds support for the `auto` value of the `dir` attribute. The value gets resolved to `ltr` or `rtl` based on browser's locale. Fixes #10186.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
forsti0506
pushed a commit
to forsti0506/components
that referenced
this issue
Apr 3, 2022
Adds support for the `auto` value of the `dir` attribute. The value gets resolved to `ltr` or `rtl` based on browser's locale. Fixes angular#10186.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: cdk/bidi
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P2
The issue is important to a large percentage of users, with a workaround
Bug, feature request, or proposal:
Need to implement auto directionality so that the direction can be determined by the text language.

What is the expected behavior?
sushi
text should be aligned to the left because dir="auto is used on the inputLeave a comment
placeholder should align to the left because dir="auto" was used on its entire form-field, which would include labels, errors, hints, icon etc.What is the current behavior?
All controls and values inherit the dir="rtl" value from the container form.
What are the steps to reproduce?
https://stackblitz.com/edit/angular-pvwfjq?file=app/input-overview-example.html
What is the use-case or motivation for changing an existing behavior?
To implement native dir="auto".
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/cdk": "^5.2.3",
"@angular/material": "^5.2.3",
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: