Skip to content

Commit

Permalink
Remove asterisk and red from required field
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-blanchard committed Nov 18, 2024
1 parent e530008 commit 2268857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions src/components/FieldSetLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@ const FieldSetLegend = ({
return (
<legend>
<p id={id} className="mb-2 block font-bold">
{required && (
<span className="text-accent-error" aria-hidden="true">
{'* '}
</span>
)}
{label}
{required && (
<strong className="text-accent-error">&nbsp;{textRequired}</strong>
)}
{required && <span>&nbsp;{textRequired}</span>}
</p>
</legend>
)
Expand Down
9 changes: 1 addition & 8 deletions src/components/InputLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@ const InputLabel = ({
}: InputLabelProps) => {
return (
<label id={id} htmlFor={htmlFor} className="mb-2 block font-bold">
{required && (
<span className="text-accent-error" aria-hidden="true">
{'* '}
</span>
)}
{label}
{required && (
<strong className="text-accent-error">&nbsp;{textRequired}</strong>
)}
{required && <span>&nbsp;{textRequired}</span>}
</label>
)
}
Expand Down

0 comments on commit 2268857

Please sign in to comment.