]> Untitled Git - lemmy-ui.git/commitdiff
Merge pull request #1569 from jsit/fix/non-list-item-in-navbar
authorSleeplessOne1917 <abias1122@gmail.com>
Sun, 25 Jun 2023 04:43:05 +0000 (04:43 +0000)
committerGitHub <noreply@github.com>
Sun, 25 Jun 2023 04:43:05 +0000 (04:43 +0000)
fix(a11y): Fix non-list item being inside ul list in navbar

src/shared/components/app/navbar.tsx

index d25254e3c17529b0b8ef4f4d2935fc89fe6e8c67..11cfb6c6e56c8d070354d5eaa6ef897dc6e006ba 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
                       type="button"
                       className="btn dropdown-toggle"
@@ -398,7 +398,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
                         </button>
                       </li>
                     </ul>
-                  </div>
+                  </li>
                 )}
               </>
             ) : (