Skip to content

Commit

Permalink
style: Fix tooltip styles (#3806)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Apr 18, 2024
1 parent 40363dc commit f715645
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/web/components/tags/TagContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ const getTooltip = (tag: TTag | undefined) => {
const tagColor = getTagColor(tag, false)

if (isTruncated) {
return `<div className='flex-row align-items-center'>
<div
return `<div>
<span
style='background-color: ${color(tagColor).fade(
0.92,
)}; border: 1px solid ${color(tagColor).fade(0.76)}; color: ${color(
tagColor,
).darken(0.1)};'
class="chip me-1"
class="chip d-inline-block chip--xs me-1"
>
${tag.label}
</div>
${tooltip || ''}
</span>
${tooltip || ''}
</div>`
}
return tooltip
Expand Down
3 changes: 3 additions & 0 deletions frontend/web/styles/project/_tooltips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ $shadow-dark: 0 4px 4px 0 #00000029;

background-color: white;

&:before {
z-index: -1 !important;
}
&.place-top {
&:after {
box-shadow: $shadow;
Expand Down

0 comments on commit f715645

Please sign in to comment.