fix(a11y): Change divs and links to buttons

This commit is contained in:
Jay Sitter 2023-06-25 01:35:34 -04:00
parent 7aa2860bd6
commit 0cc354b264
3 changed files with 14 additions and 13 deletions

View file

@ -585,9 +585,9 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
return (
suggestedTitle && (
<div
className="mt-1 text-muted small fw-bold pointer"
role="button"
<button
type="button"
className="mt-1 small border-0 bg-transparent p-0 d-block text-muted fw-bold pointer"
onClick={linkEvent(
{ i: this, suggestedTitle },
copySuggestedTitle
@ -595,7 +595,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
>
{I18NextService.i18n.t("copy_suggested_title", { title: "" })}{" "}
{suggestedTitle}
</div>
</button>
)
);
}