Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ describe('AutoClassificationTag', () => {
expect(container.querySelector('svg')).toBeInTheDocument();
});

it('should mark the label and icon with tag-color-text so the dark-mode lift applies', () => {
const { container } = render(
<AutoClassificationTag label="PII.Sensitive" />
);

expect(screen.getByText('PII.Sensitive')).toHaveClass('tag-color-text');
expect(container.querySelector('svg')).toHaveClass('tag-color-text');
});

it('should not render a redirect link when no href is passed', () => {
render(<AutoClassificationTag label="PII.Sensitive" />);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ export const AutoClassificationTag: FC<
<TagChipContent
defaultIcon={
<AutomatedTag
className="tw:shrink-0"
className="tw:shrink-0 tag-color-text"
height={ICON_PX[size]}
width={ICON_PX[size]}
/>
}
iconSize={ICON_PX[size]}
label={label}
labelClassName="tag-color-text"
maxWidth={maxWidth}
/>
);
Expand Down
Loading