Skip to content

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

Merged
merged 1 commit into from
Jan 22, 2020

Conversation

devversion
Copy link
Member

Adds a new test harness for the MDC-based form-field.

@devversion devversion requested review from jelbourn, mmalerba and a team as code owners January 13, 2020 21:22
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jan 13, 2020
providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER]
})
export class SelectWithoutFormFieldModule {
}
Copy link
Member Author

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');
}

Copy link
Member Author

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.

Copy link
Member

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

@devversion devversion force-pushed the feat/mdc-form-field-harness branch from 99b1f57 to d0ad251 Compare January 13, 2020 21:27
Copy link
Member

@jelbourn jelbourn left a 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');
}

Copy link
Member

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

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Jan 13, 2020
@devversion devversion force-pushed the feat/mdc-form-field-harness branch from d0ad251 to 58993ef Compare January 22, 2020 20:21
@jelbourn jelbourn merged commit 944837f into angular:master Jan 22, 2020
yifange pushed a commit to yifange/components that referenced this pull request Jan 30, 2020
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants