Skip to content

Commit

Permalink
Align with finalized designs
Browse files Browse the repository at this point in the history
  • Loading branch information
jzempel committed May 23, 2024
1 parent 9aba7d3 commit 816a8c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/tags/src/styled/StyledClose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ export const StyledClose = styled.button.attrs<unknown>({
appearance: none; /* [1] */
&:hover {
opacity: 1;
opacity: ${props => props.theme.opacity[1100]};
}
&:focus {
outline: none;
}
&:active {
opacity: ${props => props.theme.opacity[1200]};
}
${props => retrieveComponentStyles(COMPONENT_ID, props)};
`;

Expand Down
2 changes: 1 addition & 1 deletion packages/tags/src/styled/StyledTag.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe('StyledTag', () => {
it.each([['light'], ['dark']])('renders using a "grey" hue in %s mode', mode => {
const renderFn = mode === 'light' ? render : renderDark;
const { container } = renderFn(<StyledTag hue="grey" />);
const backgroundColor = mode === 'dark' ? PALETTE.grey[600] : PALETTE.grey[700];
const backgroundColor = mode === 'dark' ? PALETTE.grey[300] : PALETTE.grey[700];
const foregroundColor = mode === 'dark' ? PALETTE.grey[1100] : PALETTE.white;

expect(container.firstChild).toHaveStyleRule('background-color', backgroundColor);
Expand Down
6 changes: 5 additions & 1 deletion packages/tags/src/styled/StyledTag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ const colorStyles = ({ theme, hue }: ITagProps & ThemeProps<DefaultTheme>) => {
switch (hue) {
case 'grey':
case 'neutralHue':
backgroundColor = getColor({ theme, variable: 'background.emphasis' });
backgroundColor = getColor({
theme,
variable: 'background.emphasis',
dark: { offset: -300 }
});
break;

case 'blue':
Expand Down

0 comments on commit 816a8c1

Please sign in to comment.