-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(material-experimental/mdc-form-field): add test harness #18165
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
feat(material-experimental/mdc-form-field): add test harness #18165
Conversation
providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER] | ||
}) | ||
export class SelectWithoutFormFieldModule { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this. It seem reasonable for now, but long-term that might be just the MDC based select module
async hasFloatingLabel(): Promise<boolean> { | ||
return (await this.host()).hasClass('mat-form-field-can-float'); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm proposing that we remove this method. It will only make sense in the non-MDC based form-field where floatLabel = never
in the legacy appearance is supported. Not even adding it as part of the first stable release, will avoid a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not used in Google presently
99b1f57
to
d0ad251
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
async hasFloatingLabel(): Promise<boolean> { | ||
return (await this.host()).hasClass('mat-form-field-can-float'); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not used in Google presently
d0ad251
to
58993ef
Compare
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. |
Adds a new test harness for the MDC-based form-field.