Skip to content

Directionality is not implemented for dir="auto" #10186

Closed
@philip-firstorder

Description

@philip-firstorder

Bug, feature request, or proposal:

Need to implement auto directionality so that the direction can be determined by the text language.
screen shot 2018-02-28 at 12 18 32

What is the expected behavior?

  • sushi text should be aligned to the left because dir="auto is used on the input
  • Leave 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundarea: cdk/bidifeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions