Skip to content

fix(material-experimental/mdc-form-field): ensure clip-path does not truncate label early #25264

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

Merged
merged 1 commit into from
Jul 14, 2022
Merged
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
4 changes: 2 additions & 2 deletions src/material-experimental/mdc-form-field/form-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@
// shaped artifact where it meets the top and bottom borders.)
.mat-mdc-form-field .mdc-notched-outline__notch {
margin-left: -1px;
@include mat.private-clip-path(inset(-9em -9em -9em 1px));
@include mat.private-clip-path(inset(-9em -999em -9em 1px));

[dir='rtl'] & {
margin-left: 0;
margin-right: -1px;
@include mat.private-clip-path(inset(-9em 1px -9em -9em));
@include mat.private-clip-path(inset(-9em 1px -9em -999em));
}
}

Expand Down