Skip to content

Commit

Permalink
fix: Fixed label for not corresponding to the input id
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoRibeiro25 committed Aug 26, 2023
1 parent 529b257 commit 2a51cc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/PostTextarea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const PostTextArea: React.FC<PostTextAreaProps> = ({
<form className="w-full" onSubmit={handleSubmit}>
<div className="w-full mb-4 border border-gray-300 rounded-lg bg-gray-50">
<div className="px-4 py-2 bg-white rounded-t-lg">
<label htmlFor={labelText} className="sr-only">
<label htmlFor={id} className="sr-only">
{labelText}
</label>

Expand Down
2 changes: 1 addition & 1 deletion src/views/Feed/components/NewThoughtForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const NewThoughtForm: React.FC = () => {
<>
{/* Add New Thought Form */}
<PostTextArea
id="new-thought-textarea"
id="new-thought"
labelText="New Thought"
placeholder="Share your current thought with the world..."
buttonText="Post Thought"
Expand Down

0 comments on commit 2a51cc2

Please sign in to comment.