fix(a11y): Add aria-controls for advanced button dropdown

This commit is contained in:
Jay Sitter 2023-06-17 19:10:53 -04:00
parent fc1c4f3279
commit fb2c9f7491

View 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>