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(icon-button): add new pressed property/attribute and deprecate on property #817

Merged
merged 4 commits 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/N]
  • Docs have been added/updated: [Y/N]
  • Does this PR introduce a breaking change? [Y/N]
  • I have linked any related GitHub issues to be closed when this PR is merged? [Y/N]

Describe the new behavior?

The icon-button currently supports an on property, and when we started Forge v3 we introduced on instead of isOn from v2 thinking it would give more semantic meaning and consistency, but we've learned that frameworks such as Angular do not place nice with this naming...

We are going to now deprecate the on property in favor of pressed (which mimics the aria-pressed state) and this PR addresses that change.

@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 21:08
Copy link

stackblitz bot commented Feb 7, 2025

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

@DRiFTy17 DRiFTy17 removed the skip-release Preserve the current version when merged label Feb 11, 2025
@DRiFTy17 DRiFTy17 merged commit 7dc2350 into main Feb 11, 2025
8 checks passed
@DRiFTy17 DRiFTy17 deleted the icon-button-pressed branch February 11, 2025 14:26
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants