Skip to content

Mat-form outline border #17390

@albahrawy

Description

@albahrawy

I noticed a small bug in outline border calcualtion:
this is an issue with setting a _previousDirection variable in form-field.ts
1- the initial value is 'ltr', regardless if the page is originally loaded with 'rtl' layout.
2- in subscribtion of _dir.changes you call
this.updateOutlineGap(); before setting the value in
this._previousDirection = this._dir.value;
so the outlineGap calculated on the old value

my work around:
add style of mat-label to:
background-color: white;
padding:10px;

so no need to calculate outline gap.

please advice

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions