diff --git a/src/components/Pill/Pill.stories.tsx b/src/components/Pill/Pill.stories.tsx index c40f691..7c80646 100644 --- a/src/components/Pill/Pill.stories.tsx +++ b/src/components/Pill/Pill.stories.tsx @@ -33,7 +33,7 @@ NotActivePill.args = { export const DisabledPill = Template.bind({}); DisabledPill.args = { - disabled: false, + disabled: true, label: "Disabled" }; diff --git a/src/components/Pill/index.tsx b/src/components/Pill/index.tsx index 24e72aa..a6a6cc1 100644 --- a/src/components/Pill/index.tsx +++ b/src/components/Pill/index.tsx @@ -10,7 +10,7 @@ type Props = { }; export const PillsGroup = styled.div` - display: flex; + display: inline-flex; justify-content: center; align-items: center; `; @@ -29,13 +29,13 @@ const PillComponent = styled.div>` margin: 0 2px; text-decoration: none; border-radius: 16px; - display: flex; + display: inline-flex; justify-content: center; align-items: center; background-color: ${({active, disabled}) => { if (disabled) { - return "#c6c6c6"; + return "rgb(237, 238, 240)"; } return active ? "#e5f4ff" : "none"; @@ -62,11 +62,9 @@ const Pill: React.FunctionComponent = ({ disabled = false, active = false }) => ( - - - {label} - - + + {label} + ); export default Pill;