-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adapt modal design to allow gutters into ListItem
The GroupRecipient are clickable so we want the hover to expend over the entire available space. So I've deactivated the margins on the dialogs and put gutters on the ListItems. As the modals contained other text elements, I also applied margins to them accordingly
- Loading branch information
Showing
10 changed files
with
157 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
packages/cozy-sharing/src/components/ConfirmTrustedRecipientsDialog.stories.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import ConfirmTrustedRecipientsDialog from './ConfirmTrustedRecipientsDialog' | ||
|
||
const meta = { | ||
component: ConfirmTrustedRecipientsDialog, | ||
args: { | ||
recipientsToBeConfirmed: [ | ||
{ | ||
instance: 'https://example.com', | ||
isOwner: false, | ||
status: 'ready', | ||
recipientConfirmationData: null, | ||
verifyRecipient: () => {}, | ||
fadeIn: true, | ||
type: 'two-way', | ||
onRevoke: () => {}, | ||
onRevokeSelf: () => {} | ||
} | ||
] | ||
} | ||
} | ||
|
||
export default meta | ||
|
||
export const Default = { | ||
name: 'Default', | ||
args: { | ||
twoStepsConfirmationMethods: { | ||
getRecipientsToBeConfirmed: () => [ | ||
{ | ||
name: 'John Doe', | ||
instance: 'https://example.com', | ||
isOwner: false, | ||
status: 'ready' | ||
}, | ||
{ | ||
name: 'Alice Doe', | ||
instance: 'https://example.com', | ||
isOwner: false, | ||
status: 'ready' | ||
} | ||
] | ||
}, | ||
verifyRecipient: () => {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.