Skip to content

Commit

Permalink
Fix id contrast for reverse colour category badges
Browse files Browse the repository at this point in the history
  • Loading branch information
terotik authored and tituomin committed Oct 26, 2023
1 parent 6164898 commit dabfc0e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/actions/CategoryTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import styled from 'styled-components';
import { ActionListLink, StaticPageLink } from 'common/links';
import BadgeTooltip from 'components/common/BadgeTooltip';
import PopoverTip from 'components/common/PopoverTip';
import { readableColor } from 'polished';
import {
CategoryTagsCategoryFragment,
CategoryTagsCategoryTypeFragment,
Expand Down Expand Up @@ -87,7 +88,12 @@ type CategoryContentProps = {
};

const Identifier = styled.span`
color: ${(props) => props.theme.graphColors.grey060};
color: ${(props) =>
readableColor(
props.theme.neutralLight,
props.theme.graphColors.grey070,
props.theme.graphColors.grey020
)};
`;

export const CategoryContent = (props: CategoryContentProps) => {
Expand Down

0 comments on commit dabfc0e

Please sign in to comment.