Skip to content

Commit

Permalink
add area-label to form
Browse files Browse the repository at this point in the history
  • Loading branch information
KhudaDad414 committed Oct 24, 2023
1 parent da1a3ad commit 9045073
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/components/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type FormProps = {
children?: React.ReactNode
}
export const Form = ({ className, title, children }: FormProps) => (
<RadixForm.Root className={`m-8 ${className}`}>
<RadixForm.Root className={`m-8 ${className}`} aria-label={title}>
<div className="flex flex-col gap-4">
{title && (
<h2 className="mb-4 text-transparent bg-gradient-to-l from-gray-100 via-gray-300 capitalize to-gray-100 bg-clip-text text-[32px] leading-8 font-semibold text-gray-200">
Expand Down
1 change: 1 addition & 0 deletions packages/ui/components/Form/Inputs/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type TextAreaProps = {
export const TextArea = ({onChange, rows, name, value, isDisabled, isResizable, placeholder, className} : TextAreaProps) => {
return <textarea
name={name}
aria-label={name}
value={value}
onChange={onChange}
disabled={isDisabled}
Expand Down

0 comments on commit 9045073

Please sign in to comment.