Skip to content

Commit

Permalink
fix: fix color picker panel z-index issue (#47)
Browse files Browse the repository at this point in the history
Co-authored-by: dev-redo <[email protected]>
  • Loading branch information
dev-redo and dev-redo committed Apr 23, 2024
1 parent 7a68c0c commit 1c0203a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/components/ColorPicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const Base = styled.div`
box-shadow:
0px 0px 1px 0px rgba(132, 132, 132, 0.31),
0px 2px 5px 0px rgba(70, 70, 70, 0.2);
z-index: 1;
.react-colorful {
width: 100%;
Expand Down
18 changes: 9 additions & 9 deletions src/components/Input/InputContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,18 @@ const InputChildrenWrapper = styled.div`
position: relative;
`;

const RightSectionWrapper = styled.div`
const SectionWrapper = styled.div`
position: absolute;
display: flex;
top: 50%;
transform: translateY(-50%);
height: fit-content;
top: 0;
bottom: 0;
margin: auto;
`;

const RightSectionWrapper = styled(SectionWrapper)`
right: 8px;
`;

const LeftSectionWrapper = styled.div`
position: absolute;
display: flex;
top: 50%;
transform: translateY(-50%);
const LeftSectionWrapper = styled(SectionWrapper)`
padding-left: 10px;
`;

0 comments on commit 1c0203a

Please sign in to comment.