Skip to content

Commit cbc755a

Browse files
committed
fix(theme): button UX
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
1 parent b6ec794 commit cbc755a

File tree

2 files changed

+31
-20
lines changed

2 files changed

+31
-20
lines changed

src/custom/CatalogDetail/SocialSharePopper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
5656

5757
{showShareAction ? (
5858
<CustomTooltip title="Share" placement="top" arrow>
59-
<ActionButton sx={{ borderRadius: '0.1rem', padding: '0.5rem' }} onClick={handleShare}>
60-
<ChainIcon height={'24'} width={'24'} fill={theme.palette.icon.secondary} />
59+
<ActionButton sx={{ borderRadius: '0.2rem', padding: '0.4rem' }} onClick={handleShare}>
60+
<ChainIcon height={'24'} width={'24'} fill={theme.palette.icon.inverse} />
6161
Share
6262
</ActionButton>
6363
</CustomTooltip>

src/custom/ShareModal/ShareModal.tsx

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -286,25 +286,36 @@ const ShareModal: React.FC<ShareModalProps> = ({
286286
</CustomDialogContentText>
287287
</ModalBody>
288288

289-
<ModalFooter variant="filled">
290-
<ModalButtonSecondary
291-
variant="outlined"
292-
onClick={handleCopy}
293-
style={{ marginRight: '1rem', padding: '7px 16px' }}
289+
<ModalFooter
290+
variant="filled"
291+
helpText="You can share your designs or designs for which you have permission to share with other members of your organization and teams, and you can control access permissions."
292+
>
293+
<div
294+
style={{
295+
display: 'flex',
296+
justifyContent: 'end',
297+
gap: '1rem'
298+
}}
294299
>
295-
<IconButtonWrapper>
296-
<ChainIcon width="24" height="24" fill={theme.palette.text.constant?.white} />
297-
</IconButtonWrapper>
298-
<Typography>Copy Link</Typography>
299-
</ModalButtonSecondary>
300-
<ModalButtonPrimary
301-
disabled={isShareDisabled()}
302-
variant="contained"
303-
color="primary"
304-
onClick={() => handleShare(shareUserData, selectedOption)}
305-
>
306-
Share
307-
</ModalButtonPrimary>
300+
<ModalButtonSecondary
301+
variant="outlined"
302+
onClick={handleCopy}
303+
style={{ marginRight: '1rem', padding: '7px 16px' }}
304+
>
305+
<IconButtonWrapper>
306+
<ChainIcon width="24" height="24" fill={theme.palette.text.constant?.white} />
307+
</IconButtonWrapper>
308+
<Typography>Copy Link</Typography>
309+
</ModalButtonSecondary>
310+
<ModalButtonPrimary
311+
disabled={isShareDisabled()}
312+
variant="contained"
313+
color="primary"
314+
onClick={() => handleShare(shareUserData, selectedOption)}
315+
>
316+
Share
317+
</ModalButtonPrimary>
318+
</div>
308319
</ModalFooter>
309320
</Modal>
310321
</div>

0 commit comments

Comments
 (0)