fix: Fix some a11y issues on jump to content button

This commit is contained in:
Jay Sitter 2023-06-24 00:54:22 -04:00
parent e8dda77d4b
commit 07c7177a25

View 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} />
)}