mirror of
https://github.com/yldio/copilot.git
synced 2024-12-03 00:20:04 +02:00
increasing z-index for tooltip to ensure its above all content
This commit is contained in:
parent
e6cf423432
commit
1a4e61782e
@ -47,9 +47,9 @@ const StyledAvatarWrapper = styled.div`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledTooltipWrapper = styled.div`
|
const StyledTooltipWrapper = styled.div`
|
||||||
position: absolute;
|
|
||||||
right: ${remcalc(-18)};
|
right: ${remcalc(-18)};
|
||||||
bottom: ${remcalc(-140)};
|
bottom: ${remcalc(-140)};
|
||||||
|
position: absolute;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledName = styled.span`
|
const StyledName = styled.span`
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
import { remcalc } from '../../shared/functions';
|
import { remcalc } from '../../shared/functions';
|
||||||
import { baseBox, pseudoEl, Baseline } from '../../shared/composers';
|
import {
|
||||||
|
baseBox,
|
||||||
|
pseudoEl,
|
||||||
|
Baseline,
|
||||||
|
moveZ
|
||||||
|
} from '../../shared/composers';
|
||||||
import { colors } from '../../shared/constants';
|
import { colors } from '../../shared/constants';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
@ -8,7 +13,6 @@ const ItemPadder = 9;
|
|||||||
const WrapperPadder = 24;
|
const WrapperPadder = 24;
|
||||||
|
|
||||||
const StyledList = styled.ul`
|
const StyledList = styled.ul`
|
||||||
position: relative;
|
|
||||||
background: ${colors.base.white};
|
background: ${colors.base.white};
|
||||||
color: ${colors.base.text};
|
color: ${colors.base.text};
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -19,9 +23,12 @@ const StyledList = styled.ul`
|
|||||||
min-width: ${remcalc(200)};
|
min-width: ${remcalc(200)};
|
||||||
|
|
||||||
${props => props.styles}
|
${props => props.styles}
|
||||||
|
|
||||||
${baseBox()}
|
${baseBox()}
|
||||||
|
|
||||||
|
${moveZ({
|
||||||
|
amount: 1
|
||||||
|
})}
|
||||||
|
|
||||||
& > * {
|
& > * {
|
||||||
|
|
||||||
padding: ${remcalc(ItemPadder)} ${remcalc(WrapperPadder)};
|
padding: ${remcalc(ItemPadder)} ${remcalc(WrapperPadder)};
|
||||||
|
Loading…
Reference in New Issue
Block a user