Skip to content

Commit

Permalink
fix: tooltip position in announcements popup (#8092)
Browse files Browse the repository at this point in the history
  • Loading branch information
EoinFalconer authored Dec 18, 2024
1 parent 399a7be commit 21c9fab
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ const DialogHeader = styled(Grid)`
background: var(--card-bg-color);
`

const FloatingButton = styled(Button)`
const FloatingButtonBox = styled(Box)`
position: absolute;
top: 12px;
right: 24px;
z-index: 2;
`
const FloatingButton = styled(Button)``

interface AnnouncementProps {
announcement: StudioAnnouncementDocument
Expand Down Expand Up @@ -193,15 +194,17 @@ export function StudioAnnouncementsDialog({
{index < announcements.length - 1 && <Divider parentRef={dialogRef} />}
</Fragment>
))}
<FloatingButton
aria-label={t('announcement.dialog.close-label')}
icon={CloseIcon}
mode="bleed"
onClick={onClose}
tooltipProps={{
content: t('announcement.dialog.close'),
}}
/>
<FloatingButtonBox>
<FloatingButton
aria-label={t('announcement.dialog.close-label')}
icon={CloseIcon}
mode="bleed"
onClick={onClose}
tooltipProps={{
content: t('announcement.dialog.close'),
}}
/>
</FloatingButtonBox>
</Root>
</Dialog>
)
Expand Down

0 comments on commit 21c9fab

Please sign in to comment.