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(NcButton): Add pressed
state for stateful buttons
#4344
Conversation
56eed6a
to
1e1eac9
Compare
1e1eac9
to
b4b50a0
Compare
f4d0376
to
c91ef84
Compare
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 work, thank you :)
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.
haven't tested but looks good
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.
Tested, works fine, looks good by code
Cypress tests seems to be related |
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, looks good! :)
Yes as this is a visual change, the snapshots need to be updated, but the other tests pass :) |
dc27727
to
7aac835
Compare
…cAppSidebar` star button Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7aac835
to
f70d0bf
Compare
… for snapshot Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
f70d0bf
to
90400c1
Compare
☑️ Resolves
This simply adds a pressed state and enforces
primary
on pressed, and any other type (except primary) otherwise.Not we should probably remove the button variant of the checkboxradioswitch for not grouped elements to prevent different styled components with the same function.
🖼️ Screenshots
vokoscreenNG-2023-07-18_12-28-37.mp4
🏁 Checklist