Skip to content

Commit

Permalink
Merge pull request #4771 from kobotoolbox/fix-tooltip-container-overflow
Browse files Browse the repository at this point in the history
Adjust anon submission tooltip layout issue
  • Loading branch information
jamesrkiger committed Dec 18, 2023
2 parents f930fb5 + f6deac7 commit 99a0c24
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions jsapp/js/components/anonymousSubmission.component.tsx
Expand Up @@ -22,6 +22,7 @@ export default function AnonymousSubmission(props: AnonymousSubmissionProps) {
/>
<a
href={envStore.data.support_url + HELP_ARTICLE_ANON_SUBMISSIONS_URL}
className='right-tooltip wrapped-tooltip'
target='_blank'
data-tip={t(
'Allow anyone to see this form and add submissions. Click the icon to learn more.'
Expand Down
2 changes: 1 addition & 1 deletion jsapp/js/components/anonymousSubmission.module.scss
Expand Up @@ -9,5 +9,5 @@
}

a {
padding-left: sizes.$x8;
margin-left: sizes.$x8;
}
6 changes: 6 additions & 0 deletions jsapp/scss/components/_kobo.tooltips.scss
Expand Up @@ -96,6 +96,12 @@ Additional class names:
transform: translate(0);
}

.wrapped-tooltip [data-tip]::after,
.wrapped-tooltip[data-tip]::after {
width: 300px;
white-space: normal;
}

// more actions in asset-row adjustment
.asset-row .popover-menu [data-tip]::after {
left: -60%;
Expand Down

0 comments on commit 99a0c24

Please sign in to comment.