Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
♿️ Raise poll color contrast ratio to 5:1 (WCAG 1.4.11) (#2495)
Luke Vella64e6b768eaf8
diff --git a/apps/web/src/utils/color.ts b/apps/web/src/utils/color.tsindex 06c69fb8b..a139c46c4 100644--- a/apps/web/src/utils/color.ts+++ b/apps/web/src/utils/color.ts@@ -78,7 +78,7 @@ export function getForegroundColor(backgroundColor: string): string {export function adjustColorForContrast(color: string,backgroundColor: string,- minContrastRatio = 3.5,+ minContrastRatio = 5,): string {const colorRgb = hexToRgb(color);const bgRgb = hexToRgb(backgroundColor);