Skip to content

Commit 630d9f3

Browse files
authored
fix(buttons): update IconButton foreground color (#1815)
1 parent cc677f9 commit 630d9f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/buttons/src/styled/StyledIconButton.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('StyledIconButton', () => {
2929
it('renders basic color styling', () => {
3030
const { container } = render(<StyledIconButton isBasic />);
3131

32-
expect(container.firstChild).toHaveStyleRule('color', PALETTE.grey[900]);
32+
expect(container.firstChild).toHaveStyleRule('color', PALETTE.grey[700]);
3333
});
3434

3535
describe('disabled', () => {

packages/buttons/src/styled/StyledIconButton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { StyledIcon } from './StyledIcon';
1414
export const COMPONENT_ID = 'buttons.icon_button';
1515

1616
const iconColorStyles = ({ theme }: IButtonProps & ThemeProps<DefaultTheme>) => {
17-
const options = { theme, variable: 'foreground.default' };
17+
const options = { theme, variable: 'foreground.subtle' };
1818
const baseColor = getColor(options);
1919
const hoverColor = getColor({ ...options, dark: { offset: -100 }, light: { offset: 100 } });
2020
const activeColor = getColor({ ...options, dark: { offset: -200 }, light: { offset: 200 } });

0 commit comments

Comments
 (0)