Skip to content

Commit

Permalink
Merge pull request #1391 from Wizleap-Inc/feat/tooltip-zindex
Browse files Browse the repository at this point in the history
Feat/tooltip-zindex
  • Loading branch information
ichi-h authored Oct 28, 2024
2 parents 910e034 + 05d4af9 commit d37d635
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changeset/plenty-birds-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@wizleap-inc/wiz-ui-constants": minor
"@wizleap-inc/wiz-ui-next": patch
"@wizleap-inc/wiz-ui-react": patch
---

Fix: tooltip を dropdown より上に表示する
8 changes: 6 additions & 2 deletions packages/constants/styles/z-index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ export const Z_INDEX_MAP = {
*/
dialog: "2000",
/**
* dropdown(選択系),tooltip(情報系),alert
* dropdown(選択系), alert
*/
popover: "3000",
/**
* tooltip(情報系)
*/
tooltip: "4000",
/**
* overlay(全画面系)
*/
overlay: "4000",
overlay: "5000",
} as const;

export type ZIndexKeys = keyof typeof Z_INDEX_MAP;
Expand Down
9 changes: 5 additions & 4 deletions packages/wiz-ui-next/src/components/base/tooltip/tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
:animation="true"
@onTurn="turnPopup"
gap="xs2"
layer="tooltip"
:isDirectionFixed="isDirectionFixed"
>
<div
Expand All @@ -38,14 +39,14 @@
<script setup lang="ts">
import { ComponentName } from "@wizleap-inc/wiz-ui-constants";
import {
tooltipStyle,
tooltipContentStyle,
tooltipIconStyle,
tooltipIconDirectionStyle,
tooltipPositionStyle,
tooltipIconStyle,
tooltipPopupStyle,
tooltipPositionStyle,
tooltipStyle,
} from "@wizleap-inc/wiz-ui-styles/bases/tooltip.css";
import { PropType, ref, computed } from "vue";
import { computed, PropType, ref } from "vue";
import { WizIChangeHistory, WizPopup, WizPopupContainer } from "@/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const Tooltip: FC<Props> = ({
shadow={false}
animation
gap="xs2"
layer="tooltip"
isDirectionFixed={isDirectionFixed}
>
<div
Expand Down

0 comments on commit d37d635

Please sign in to comment.