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(angular): item styling when control has value #24932

Merged
merged 7 commits into from
Apr 5, 2022
Merged

Conversation

sean-perkins
Copy link
Contributor

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

When a control, inside an ion-item is displayed within a modal; after opening, closing and re-opening the modal, the item-has-value class is not applied to the ion-item that wraps the control.

Issue URL: #23809

What is the new behavior?

  • item-has-value is manually applied to the ion-item from the control value accessor, when applying other Ionic classes

Does this introduce a breaking change?

  • Yes
  • No

Other information

This PR does misc clean-up to deprecated substr and usage for add/remove classes.

Closing #24401 in favor of this PR.

@sean-perkins sean-perkins requested a review from a team as a code owner March 12, 2022 04:54
@github-actions github-actions bot added the package: angular @ionic/angular package label Mar 12, 2022
@liamdebeasi
Copy link
Contributor

Prior to merging, please provide the developers on #23809 with a dev build. I'd prefer to have some developer feedback before we ship this.

@liamdebeasi
Copy link
Contributor

liamdebeasi commented Apr 4, 2022

@sean-perkins We can probably merge this now. We've given developers time to test, and this new approach seems safer than the previous approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: angular @ionic/angular package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants