-
Notifications
You must be signed in to change notification settings - Fork 297
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
Update modal dialog #8201
Update modal dialog #8201
Conversation
Build files for 8a8acb8 have been deleted. |
Size Change: +16.7 kB (+1%) Total Size: 1.47 MB
ℹ️ View Unchanged
|
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.
Very nice work here, thank you @zutigrm.
I've left some feedback, mostly nitpicky, but helps us be consistent with the existing standards.
Besides the feedback, there is another point I'd like to raise. We have this AC:
- The Disconnect and Reset Site Kit Modals with the
danger
property should be styled exactly as per the new Error Modals.
If I took a look at the linked Figma design, it looks like that dialog is using the 402px size. In that case, I think the ModalDialog
components in assets/js/components/ResetButton.js
& assets/js/components/UserMenu/index.js
should use the small
variant (402px width).
Please let me know what you think. Thanks!
assets/js/components/PermissionsModal/AuthenticatedPermissionsModal.stories.js
Outdated
Show resolved
Hide resolved
Thaks for the feedback @nfmohit . PR updated |
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 here, @zutigrm! I have left a few additional nitpicky comments. I hope you don't mind, thank you!
Thanks @nfmohit for the feedback. PR is updated |
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, thank you @zutigrm! 👍
Summary
Addresses issue:
Relevant technical choices
Things to note:
small
andmedium
props to theModalDialog
component as there are 3 different modal sizes in figma, I used the widest one as default, and 2 other can be used as needed.medium
is for permissions modal, where it is included now, andsmall
should be used with audience permission modals - like this onePR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist