Skip to content

fix(ng-update): form-field css name incorrectly updated #12768

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

Conversation

devversion
Copy link
Member

@devversion devversion commented Aug 21, 2018

  • Fixes that the css-name rules incorrectly replaces mat-form-field-placeholder-wrapper with mat-form-field-labeler.

This happens because we first look for mat-form-field-placeholder -> create the replacement -> then
check on the same content for mat-form-field-placeholder-wrapper (needed for proper offsets and reporting) -> create another replacement for mat-form-field-placeholder-wrapper.

Solution: mat-form-field-placeholder-wrapper should be just updated as part of mat-form-field-placeholder.


  • Cleans up the class-names and css-names update rules. Moves them into separate directories for a better overview (similar to the attribute selectors; grouped by data input)

  • Updates an incorrect Github PR link for the $mat-font-family removal.

@devversion devversion requested a review from amcdnl as a code owner August 21, 2018 10:39
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 21, 2018
* Cleans up the `class-names` and `css-names` update rules. Moves them into separate directories for a better overview (similar to the attribute selectors; grouped by data input)
* Fixes that the `css-name` rules incorrectly replace `mat-form-field-placeholder-wrapper` with `mat-form-field-labeler`. This happens because we first look for `mat-form-field-placeholder` -> create the replacement -> and then check on the same content (for proper offsets and reporting) and create another replacement for `mat-form-field-placeholder-wrapper`. `mat-form-field-placeholder-wrapper` should be just updated as part of `mat-form-field-placeholder`.
* Updates an incorrect Github PR link for the `$mat-font-family` removal.
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

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Aug 21, 2018
@jelbourn jelbourn merged commit 4830be8 into angular:master Aug 21, 2018
@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 Sep 9, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants