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(action-sheet): add disabled button #28723

Merged
merged 7 commits into from
Dec 19, 2023
Merged

feat(action-sheet): add disabled button #28723

merged 7 commits into from
Dec 19, 2023

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Dec 18, 2023

Issue number: N/A

What is the current behavior?

Action sheet buttons cannot be disabled. This behavior exists in iOS 17.

What is the new behavior?

  • Action sheet buttons can be disabled

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot added the package: core @ionic/core package label Dec 18, 2023
Comment on lines +448 to +449
'ion-activatable': !button.disabled,
'ion-focusable': !button.disabled,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The design document recommended doing .action-sheet-button:not(:disabled).ion-activated (or ion-focused), but this seemed a bit cleaner by just removing the functionality altogether.

@liamdebeasi liamdebeasi marked this pull request as ready for review December 18, 2023 20:26
@liamdebeasi liamdebeasi requested a review from a team as a code owner December 18, 2023 20:26
@liamdebeasi liamdebeasi requested review from averyjohnston and removed request for a team December 18, 2023 20:26
Copy link
Contributor

@sean-perkins sean-perkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Features looks good. I agree with your approach of disabling the functionality vs. hacking around it in CSS.

One comment, non-blocking, but I think a nice improvement.

@liamdebeasi liamdebeasi merged commit e76d729 into FW-4845 Dec 19, 2023
@liamdebeasi liamdebeasi deleted the FW-5730 branch December 19, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants