-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Conversation
'ion-activatable': !button.disabled, | ||
'ion-focusable': !button.disabled, |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
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?
Does this introduce a breaking change?
Other information