Skip to content

Commit

Permalink
z index fixed on color picker
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanakdogan committed Sep 19, 2019
1 parent e2b8e41 commit 72cdea7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Charts/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function handleRating(array, submission) {
}

if (array.length !== submission.stars + 1) {
for (let i = 0; i <= submission.stars; i++) {
for (let i = 1; i <= submission.stars; i++) {
if (!array.find((a) => a.label == i)) {
array.push({ label: i, value: 0 });
}
Expand Down
2 changes: 2 additions & 0 deletions src/Components/ColorPicker/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ function Picker({ color, onColorChange }) {

const PickerDiv = styled.div`
position: absolute;
z-index: 10;
`;

const AddButton = styled.div`
Expand All @@ -130,6 +131,7 @@ color: #fff;
border-radius: 10%;
font-size: 20px;
text-align: center;
`;

const FlexWrapper = styled.div`
Expand Down

0 comments on commit 72cdea7

Please sign in to comment.