-
Notifications
You must be signed in to change notification settings - Fork 25
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: Button Toggle: Add ability for consumers to handle toggling pressed state #5154
Conversation
Thanks for the PR! 🎉 We've deployed an automatic preview for this PR - you can see your changes here:
Note The build needs to finish before your changes are deployed. |
@@ -54,6 +54,26 @@ <h2>Toggle Button (disabled)</h2> | |||
</template> | |||
</d2l-demo-snippet> | |||
|
|||
<h2>Toggle Button (with promise delay)</h2> |
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.
Seems like we could remove reference to "promise" here since there's no promise involved. Could even set it up with d2l-dialog-confirm
, but the setTimeout
is simple and effective. 😏
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.
Nice!
🎉 This PR is included in version 3.68.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Jira ticket
Still needs docs and test(s) but just wanted to make sure I was going down the right path from this comment before I went too far.