Skip to content

Commit

Permalink
Improve FormHelperText contrast (#6346)
Browse files Browse the repository at this point in the history
* use darker shade of gray for form helper text to meet AAA accessibility constrast guidelines as the 500 variation failed the guidelines

* docs: update changelog

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
  • Loading branch information
quantumomid and segunadebayo committed Aug 10, 2022
1 parent 70872f2 commit 2fd5d07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curly-trees-serve.md
@@ -0,0 +1,5 @@
---
"@chakra-ui/theme": patch
---

Improve contrast of FormHelperText to satisfy accessibility check
2 changes: 1 addition & 1 deletion packages/theme/src/components/form.ts
Expand Up @@ -15,7 +15,7 @@ const baseStyleRequiredIndicator: SystemStyleFunction = (props) => {
const baseStyleHelperText: SystemStyleFunction = (props) => {
return {
mt: 2,
color: mode("gray.500", "whiteAlpha.600")(props),
color: mode("gray.600", "whiteAlpha.600")(props),
lineHeight: "normal",
fontSize: "sm",
}
Expand Down

1 comment on commit 2fd5d07

@vercel
Copy link

@vercel vercel bot commented on 2fd5d07 Aug 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.