]> Untitled Git - lemmy-ui.git/commitdiff
fix(a11y): Fix non-list item being inside ul list in navbar
authorJay Sitter <jay@jaysitter.com>
Sat, 24 Jun 2023 22:47:14 +0000 (18:47 -0400)
committerJay Sitter <jay@jaysitter.com>
Sat, 24 Jun 2023 22:47:14 +0000 (18:47 -0400)
src/shared/components/app/navbar.tsx

index 2ede00e183be2d0234adc3c56c205324f1fac140..89a280d9de04c78970bec4258bdd249c8b3f282b 100644 (file)
@@ -347,7 +347,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
                   </li>
                 )}
                 {person && (
-                  <div id="dropdownUser" className="dropdown">
+                  <li id="dropdownUser" className="dropdown">
                     <button
                       className="btn dropdown-toggle"
                       role="button"
@@ -398,7 +398,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
                         </button>
                       </li>
                     </ul>
-                  </div>
+                  </li>
                 )}
               </>
             ) : (