Skip to content
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

fix(mdc-form-field): refresh notch width when toggling appearances #18776

Merged
merged 2 commits into from
Mar 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
@mixin _mat-mdc-text-field-textarea-overrides() {
// Ensures that textarea elements inside of the form-field have proper vertical spacing
// to account for the floating label. Also ensures that there is no vertical text overflow.
// TODO(devversion): remove extra specificity if we removed the ":not(outline-appearance)"
// selector from the structure overwrites. Blocked on material-components-web#5326.
.mat-mdc-form-field > .mat-mdc-text-field-wrapper .mat-mdc-form-field-infix
.mat-mdc-textarea-input {
resize: vertical;
box-sizing: border-box;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export class MatFormFieldNotchedOutline implements AfterViewInit, OnChanges, OnD
// that we cannot extend from the "MDCNotchedOutline".
this._mdcNotchedOutline = MDCNotchedOutline.attachTo(this._elementRef.nativeElement);
}
// Initial sync in case state has been updated before view initialization.
this._syncNotchedOutlineState();
}

ngOnChanges() {
Expand Down