diff --git a/src/common/constants.js b/src/common/constants.js index 371d923..2601f2a 100644 --- a/src/common/constants.js +++ b/src/common/constants.js @@ -27,7 +27,6 @@ export const POLYGON_CLIP_PATH = { STAR: "polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)", DIAMOND: "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)", - PENTAGON: - "polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)", + PENTAGON: "polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)", TRIANGLE: "polygon(50% 0%, 0% 100%, 100% 100%)", }; diff --git a/src/common/utilities.js b/src/common/utilities.js index 1e97607..5afe61c 100644 --- a/src/common/utilities.js +++ b/src/common/utilities.js @@ -515,9 +515,15 @@ export function mapStyleByShape(shapes, activeShapes) { const styledShapes = shapes.map((s) => { const { colour, shape, title } = s; const style = { - background: activeShapes.includes(title) ? colour : "none", - border: `1px solid ${colour}`, - clipPath: POLYGON_CLIP_PATH[shape], + checkboxStyles: { + background: activeShapes.includes(title) ? colour : "black", + border: "none", + clipPath: POLYGON_CLIP_PATH[shape], + }, + containerStyles: { + background: colour, + clipPath: POLYGON_CLIP_PATH[shape], + }, }; s.styles = style; return s; diff --git a/src/components/atoms/Checkbox.js b/src/components/atoms/Checkbox.js index d555a38..e35bced 100644 --- a/src/components/atoms/Checkbox.js +++ b/src/components/atoms/Checkbox.js @@ -5,8 +5,8 @@ const Checkbox = ({ label, isActive, onClickCheckbox, color, styleProps }) => {