fix(a11y): Change divs and links to buttons
This commit is contained in:
parent
7aa2860bd6
commit
0cc354b264
3 changed files with 14 additions and 13 deletions
|
@ -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>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue