Skip to content

Commit

Permalink
fix(Tooltip): z-index
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Aug 14, 2019
1 parent 890a034 commit 96e8456
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Tooltip/Tooltip.theme.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createThemeTag } from '../../theme/createThemeTag';
import { Z_INDEX } from '../../theme';


const name = 'tooltip';
Expand All @@ -11,6 +12,7 @@ const [TooltipMessageTag, tooltipMessageTheme] = createThemeTag(`${name}Message`
fontSize: SIZES.OVERLINE_2,
borderRadius: SIZES.MAIN_BORDER_RADIUS,
boxShadow: '2px 0 10px 0 rgba(0, 0, 0, 0.16)',
zIndex: Z_INDEX.TOOLTIP,
},
}));

Expand Down
1 change: 1 addition & 0 deletions src/theme/zIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const Z_INDEX = {
MODAL: 10000,
DROPDOWN: 20000,
TOOLTIP: 30000,
FIXED_NAV: 1000,
};

Expand Down

0 comments on commit 96e8456

Please sign in to comment.