From 0cc354b26431202f9b67ed638ba3ec5be1c3cc61 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sun, 25 Jun 2023 01:35:34 -0400 Subject: [PATCH] fix(a11y): Change divs and links to buttons --- src/shared/components/post/post-form.tsx | 8 ++++---- src/shared/components/post/post-listing.tsx | 7 ++++--- .../components/private_message/private-message.tsx | 12 ++++++------ 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index 6e478326..081792aa 100644 --- a/src/shared/components/post/post-form.tsx +++ b/src/shared/components/post/post-form.tsx @@ -585,9 +585,9 @@ export class PostForm extends Component { return ( suggestedTitle && ( -
{ > {I18NextService.i18n.t("copy_suggested_title", { title: "" })}{" "} {suggestedTitle} -
+ ) ); } diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 48fb5c07..d2fe98de 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -248,12 +248,13 @@ export class PostListing extends Component {
- - +
); diff --git a/src/shared/components/private_message/private-message.tsx b/src/shared/components/private_message/private-message.tsx index b31e1cdb..c8f73eb3 100644 --- a/src/shared/components/private_message/private-message.tsx +++ b/src/shared/components/private_message/private-message.tsx @@ -109,17 +109,17 @@ export class PrivateMessage extends Component<
  • -
    {this.state.collapsed ? ( - + ) : ( - + )} -
    +
  • {this.state.showEdit && (