]> Untitled Git - lemmy-ui.git/commitdiff
fix(a11y): Add aria-controls for advanced button dropdown
authorJay Sitter <jay@jaysitter.com>
Sat, 17 Jun 2023 23:10:53 +0000 (19:10 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 18 Jun 2023 14:18:17 +0000 (10:18 -0400)
src/shared/components/post/post-listing.tsx

index 1ba9bb1c1897e2a2cc963372801d04468e9f3aeb..afe7f89bff8099224ca6c4fbc2e9d48cd1c5f80f 100644 (file)
@@ -691,12 +691,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               data-tippy-content={i18n.t("more")}
               data-bs-toggle="dropdown"
               aria-expanded="false"
+              aria-controls="advancedButtonsDropdown"
               aria-label={i18n.t("more")}
             >
               <Icon icon="more-vertical" inline />
             </button>
 
-            <ul className="dropdown-menu">
+            <ul className="dropdown-menu" id="advancedButtonsDropdown">
               {!this.myPost ? (
                 <>
                   <li>{this.reportButton}</li>