Skip to content

Commit e19adfc

Browse files
committed
fix(cutout): fix z-index issue
1 parent c9f61c6 commit e19adfc

File tree

5 files changed

+3
-8
lines changed

5 files changed

+3
-8
lines changed

src/components/Cutout/Cutout.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const StyledCutout = styled.div`
1919
position: absolute;
2020
left: 0;
2121
top: 0;
22-
z-index: 1;
2322
content: '';
2423
width: calc(100% - 4px);
2524
height: calc(100% - 4px);

src/components/Select/Select.styles.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export const StyledNativeSelect = styled.select`
9898
export const StyledDropdownButton = styled(Button)`
9999
width: 30px;
100100
padding: 0;
101-
z-index: 1;
102101
flex-shrink: 0;
103102
${({ variant }) =>
104103
variant === 'flat'
@@ -169,7 +168,7 @@ export const StyledDropdownMenu = styled.ul`
169168
padding: 2px;
170169
border-top: none;
171170
cursor: default;
172-
z-index: 99;
171+
z-index: 1;
173172
cursor: pointer;
174173
box-shadow: ${props => (props.shadow ? commonShadow : 'none')};
175174
${({ variant }) =>

src/components/Slider/Slider.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ const StyledFlatGroove = styled(Cutout)`
154154
`;
155155
const Thumb = styled.span`
156156
position: relative;
157-
158-
z-index: 1;
159-
160157
${({ vertical }) =>
161158
vertical
162159
? css`

src/components/SwitchBase/SwitchBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const StyledInput = styled.input`
1212
width: ${size}px;
1313
height: ${size}px;
1414
opacity: 0;
15-
z-index: -99;
15+
z-index: -1;
1616
`;
1717

1818
export const StyledLabel = styled.label`

src/components/Tooltip/Tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Tip = styled.span`
88
position: absolute;
99
bottom: -4px;
1010
left: 50%;
11-
z-index: 10;
11+
z-index: 1;
1212
transform: translate(-50%, 100%);
1313
display: ${props => (props.show ? 'block' : 'none')};
1414
padding: 4px;

0 commit comments

Comments
 (0)