Skip to content

Commit

Permalink
chore: updating floating button to be default if is inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewrmarshall committed Feb 3, 2025
1 parent 4fe9ff9 commit dfffc10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export const ButtonIcon = React.forwardRef<HTMLButtonElement, ButtonIconProps>(
isFloating && [
'rounded-full',
!isInverse && 'bg-icon-default text-background-default',
isInverse && 'text-icon-default bg-background-default',
isInverse && 'bg-icon-default text-background-default',
],
// Non-floating styles
!isFloating && [
'rounded bg-transparent',
'rounded bg-transparent ',
// Only apply hover/active styles when interactive
isInteractive && 'hover:bg-hover active:bg-pressed',
!isInverse && 'text-icon-default',
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system-react/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type { ButtonSecondaryProps } from './button-secondary';
export { ButtonTertiary, ButtonTertiarySize } from './button-tertiary';
export type { ButtonTertiaryProps } from './button-tertiary';

export { Button, ButtonVariant } from './button';
export { Button, ButtonSize, ButtonVariant } from './button';
export type { ButtonProps } from './button';

export { TextButton } from './text-button';
Expand Down

0 comments on commit dfffc10

Please sign in to comment.