Skip to content

Commit

Permalink
fix: darken the tint color for light colored button text
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Nov 16, 2023
1 parent b22f561 commit d5e6b9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/elements/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ function ButtonBase({
break;
case 'filled':
backgroundColor = color;
textColor = Color(color).isDark() ? 'white' : 'black';
textColor = Color(color).isDark()
? 'white'
: Color(color).darken(0.71).string();
break;
}

Expand Down

0 comments on commit d5e6b9e

Please sign in to comment.