Skip to content

Commit

Permalink
fix: tooltips when used in elevated contexts (gitbutlerapp#4703)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Aug 16, 2024
1 parent bb6a7d8 commit 7dc8299
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/src/lib/branch/BranchLaneContextMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
slot="control"
bind:checked={allowRebasing}
on:click={toggleAllowRebasing}
help="Having this enabled permits commit amending and reordering after a branch has been pushed, which would subsequently require force pushing"
help="Allows changing commits after push (force push needed)"
/>
</ContextMenuItem>
</ContextMenuSection>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/styles/components/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
color: var(--clr-core-ntrl-60);
display: inline-block;
padding: 6px 8px;
z-index: var(--z-tooltip);
z-index: var(--z-blocker);

max-width: 180px;
position: absolute;
Expand Down
3 changes: 1 addition & 2 deletions packages/ui/src/styles/core/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
--z-lifted: 2;
--z-floating: 3;
--z-modal: 4;
--z-tooltip: 9;
--z-blocker: 10;
--z-blocker: calc(infinity);

/* TODO: add focus color */
--focus-color: var(--clr-scale-pop-50);
Expand Down

0 comments on commit 7dc8299

Please sign in to comment.