-
Notifications
You must be signed in to change notification settings - Fork 20
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(modal): Expose a closable property to be able to hide x icon #619
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
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 man! Maybe we should add a test case for covering this also?
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.
I think this has been requested before and if I remember correctly this is a design decision. That the modal should always have a close button?
I had the same memory so I asked yesterday about it but designers approved it. I am not sure if was I confusing it with the banner component thou. |
Yes, I think memory serves you correct. Although as I believe you can hide it in Figma, it made sense to have this flexibility in the component also. But please, @charlottelorensson or Laurens, you could also give your view on it. |
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.
Works as expected, nicely done! Maybe introduce a test case for it to cover all bases? 😄
I agree that it's not best practice UX to disable the close button, sometimes users do not want to make a decision, even if it has a cancel button, they just want to close. Will add tests as well to ensure quality |
Quality Gate passedIssues Measures |
I have now pushed tests for close button aswell |
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.
LGTM, great work! 🚀
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.
LGTM
Describe pull-request
Expose a collapsible property to be able to hide x icon
Issue Linking:
How to test
Checklist before submission
Suggested test steps
Additional context
Unit tests will be added if requested.