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

feat(switch): add new checked property/attribute and deprecate on property #815

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

DRiFTy17
Copy link
Collaborator

@DRiFTy17 DRiFTy17 commented Feb 7, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: Y
  • Docs have been added/updated: Y
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

The switch currently supports a legacy selected property and a new on property that are aliases of each other. When we started Forge v3 we introduce on thinking it would give more semantic meaning, but we've learned that frameworks such as Angular do not place nice with this naming, and since then the spec moved forward with a built-in switch based using an <input> and this uses checked.

We are going to now deprecate the on property in favor of checked and this PR addresses those changes.

@DRiFTy17 DRiFTy17 added minor Increment the minor version when merged skip-release Preserve the current version when merged labels Feb 7, 2025
@DRiFTy17 DRiFTy17 requested a review from a team as a code owner February 7, 2025 20:41
Copy link

stackblitz bot commented Feb 7, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DRiFTy17 DRiFTy17 merged commit 48beecb into main Feb 11, 2025
13 checks passed
@DRiFTy17 DRiFTy17 deleted the switch-checked branch February 11, 2025 13:49
Copy link
Contributor

🚀 PR was released in v3.6.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged released This issue/pull request has been released. skip-release Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants