]> Untitled Git - lemmy-ui.git/commitdiff
fix: Fix some a11y issues on jump to content button
authorJay Sitter <jay@jaysitter.com>
Sat, 24 Jun 2023 04:54:22 +0000 (00:54 -0400)
committerJay Sitter <jay@jaysitter.com>
Sat, 24 Jun 2023 04:54:22 +0000 (00:54 -0400)
src/shared/components/app/app.tsx

index 96bf10168e8e47aa9729e3f59390eb06d9ddc11f..a815ade9177b51bc0d9a68e464920ec622601aa2 100644 (file)
@@ -33,12 +33,14 @@ export class App extends Component<any, any> {
       <>
         <Provider i18next={I18NextService.i18n}>
           <div id="app" className="lemmy-site">
-            <a
-              className="skip-link bg-light text-dark p-2 text-decoration-none position-absolute start-0 z-3"
+            <button
+              type="button"
+              tabIndex="0"
+              className="btn btn-text skip-link bg-light position-absolute start-0 z-3"
               onClick={linkEvent(this, this.handleJumpToContent)}
             >
-              ${I18NextService.i18n.t("jump_to_content", "Jump to content")}
-            </a>
+              {I18NextService.i18n.t("jump_to_content", "Jump to content")}
+            </button>
             {siteView && (
               <Theme defaultTheme={siteView.local_site.default_theme} />
             )}