Repository navigation
feat: polish modals - #2106
feat: polish modals#2106
Conversation
There was a problem hiding this comment.
Pull request overview
This PR polishes the modal UI by moving the cancel action from a text button in the modal footer to an icon-only "×" close button in the modal header. It also updates modal border-radius styling and introduces new optional fields to the Modal type.
Changes:
- The cancel button in
OcModalis relocated from the footer action bar to the header, as a raw icon (close) button controlled by the newhideCancelButtonprop - Custom modal components (
CreateLinkModal,DatePickerModal,AppTokenModal) have their own inline cancel buttons removed, delegating to the header's X button - New fields
hideHeader,hideFooter, andsizeare added to theModalstore type, andhideCancelButtonis wired throughModalWrapper.vue
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
packages/design-system/src/components/OcModal/OcModal.vue |
Moves cancel button to header, adds hideCancelButton prop, updates border radius styling |
packages/design-system/src/components/OcModal/OcModal.spec.ts |
Updates cancel button selector to .oc-modal-title-actions-cancel |
packages/design-system/src/components/OcModal/__snapshots__/OcModal.spec.ts.snap |
Regenerated snapshots reflecting header cancel button and style changes |
packages/web-pkg/src/composables/piniaStores/modals.ts |
Adds hideCancelButton, hideHeader, hideFooter, and size to Modal type |
packages/web-runtime/src/components/ModalWrapper.vue |
Binds the new hideCancelButton prop |
packages/web-pkg/src/helpers/resource/conflictHandling/conflictDialog.ts |
Sets hideCancelButton: true to hide X button in conflict resolution dialogs |
packages/web-pkg/src/components/AppTemplates/AppWrapper.vue |
Sets hideCancelButton: true for the unsaved changes modal |
packages/web-pkg/src/components/CreateLinkModal.vue |
Removes inline cancel button |
packages/web-pkg/src/components/Modals/DatePickerModal.vue |
Removes inline cancel button |
packages/web-runtime/src/components/Modals/AppTokenModal.vue |
Removes inline cancel button |
packages/design-system/docs/components/OcModal/slot.vue |
Removes inline cancel button from doc example |
tests/e2e/support/objects/app-files/link/actions.ts |
Updates cancel button selector — but uses wrong class name |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
JammingBen
left a comment
There was a problem hiding this comment.
In the design mock, the rounded corners of the modals match the rounded corners of the overall content container. We should either increase the rounded corners of the content area, or decrease those of the modal (I think I prefer the latter? but don't know 🤷 )
The upload overlay is still missing from the story.
Love you 😼 |
Description
Related Issue
How Has This Been Tested?
Types of changes