Skip to content

Commit

Permalink
fix(cutout): fix z-index issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbien committed May 19, 2020
1 parent c9f61c6 commit e19adfc
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/components/Cutout/Cutout.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const StyledCutout = styled.div`
position: absolute;
left: 0;
top: 0;
z-index: 1;
content: '';
width: calc(100% - 4px);
height: calc(100% - 4px);
Expand Down
3 changes: 1 addition & 2 deletions src/components/Select/Select.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export const StyledNativeSelect = styled.select`
export const StyledDropdownButton = styled(Button)`
width: 30px;
padding: 0;
z-index: 1;
flex-shrink: 0;
${({ variant }) =>
variant === 'flat'
Expand Down Expand Up @@ -169,7 +168,7 @@ export const StyledDropdownMenu = styled.ul`
padding: 2px;
border-top: none;
cursor: default;
z-index: 99;
z-index: 1;
cursor: pointer;
box-shadow: ${props => (props.shadow ? commonShadow : 'none')};
${({ variant }) =>
Expand Down
3 changes: 0 additions & 3 deletions src/components/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ const StyledFlatGroove = styled(Cutout)`
`;
const Thumb = styled.span`
position: relative;
z-index: 1;
${({ vertical }) =>
vertical
? css`
Expand Down
2 changes: 1 addition & 1 deletion src/components/SwitchBase/SwitchBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const StyledInput = styled.input`
width: ${size}px;
height: ${size}px;
opacity: 0;
z-index: -99;
z-index: -1;
`;

export const StyledLabel = styled.label`
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Tip = styled.span`
position: absolute;
bottom: -4px;
left: 50%;
z-index: 10;
z-index: 1;
transform: translate(-50%, 100%);
display: ${props => (props.show ? 'block' : 'none')};
padding: 4px;
Expand Down

0 comments on commit e19adfc

Please sign in to comment.