Skip to content

Commit

Permalink
fix(passport): Style Fixes (#2479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmin-Parvulescu authored Jul 12, 2023
1 parent 1d168ce commit cdf3f32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/design-system/src/helpers/get-text-color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function getContrast(f, b) {
}

export default function getTextColor(bgColor: string) {
if (bgColor === '#6366F1') return '#ffffff'

const whiteContrast = getContrast(bgColor, '#ffffff')
const blackContrast = getContrast(bgColor, '#000000')

Expand Down

0 comments on commit cdf3f32

Please sign in to comment.