Skip to content

feat(toggle): add new properties and prepare for development - #26305

Merged
liamdebeasi merged 14 commits into
FW-2597from
2597-props
Nov 17, 2022
Merged

liamdebeasi merged 14 commits into
FW-2597from
2597-props

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Nov 16, 2022 •

Copy link
Copy Markdown
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)
    • Some docs updates need to be made in the ionic-docs repo, in a separate PR. See the contributing guide for details.
  • 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?

Toggle needs to be converted to use the new standalone form syntax.

What is the new behavior?

  • Added the "labelPlacement" and "justify" properties
  • Added the default slot for labels
  • Added conditional rendering for legacy vs modern toggles
  • Added a deprecation warning when using legacy toggles
  • Moved tests to legacy directory
  • Renamed the "--background" and "--background-checked" variables to "--track-background" and "--track-background-checked" respectively to avoid confusion with the new CSS variables being added.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions Bot added package: angular @ionic/angular package package: core @ionic/core package package: vue @ionic/vue package labels Nov 16, 2022
@liamdebeasi liamdebeasi changed the title 2597 props feat(toggle): add new properties and prepare for development Nov 16, 2022
@liamdebeasi
liamdebeasi marked this pull request as ready for review November 16, 2022 20:50
@liamdebeasi
liamdebeasi requested a review from a team as a code owner November 16, 2022 20:50
@liamdebeasi
liamdebeasi merged commit e0e1176 into FW-2597 Nov 17, 2022
@liamdebeasi
liamdebeasi deleted the 2597-props branch November 17, 2022 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package package: core @ionic/core package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants