change text color

This commit is contained in:
mulan xia 2024-02-14 10:26:51 -05:00
parent b638ec1ad6
commit da4fc821c8
No known key found for this signature in database
GPG Key ID: C6CE526613568D73
2 changed files with 6 additions and 0 deletions

View File

@ -33,4 +33,9 @@ TagStory.argTypes = {
control: { type: 'select' },
defaultValue: undefined,
},
isHighlighted: {
options: [true, false],
control: { type: 'select' },
defaultValue: false,
},
};

View File

@ -76,5 +76,6 @@ export const Tag = styled.span<StyleProps>`
isHighlighted &&
css`
background-color: var(--color-accent);
color: var(--color-text-button);
`}
`;