Skip to content

Commit

Permalink
fix(a11y): control label text color
Browse files Browse the repository at this point in the history
  • Loading branch information
huyenltnguyen committed May 7, 2024
1 parent 5317d85 commit f89566c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control-label/control-label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ControlLabel = ({

const labelStyle = validationState
? validationLabel[validationState]
: undefined;
: "text-foreground-primary";
const screenOnlyClass = srOnly ? "sr-only" : undefined;
const defaultClasses = [labelStyle, screenOnlyClass, className].join(" ");

Expand Down

0 comments on commit f89566c

Please sign in to comment.