fix: add aria-label to reader mode toggle button

This commit is contained in:
saberzero1 2026-05-24 16:21:07 +02:00
parent e678efb753
commit 70380f3fcd
No known key found for this signature in database
5 changed files with 5 additions and 5 deletions

View file

@ -339,7 +339,7 @@ function u2(e2, t2, n2, o2, i2, u3) {
// src/components/ReaderMode.tsx
var ReaderMode = ({ displayClass, cfg }) => {
const title = i18n(cfg?.locale ?? "en-US").components.readerMode.title;
return /* @__PURE__ */ u2("button", { class: classNames(displayClass, "readermode"), children: /* @__PURE__ */ u2(
return /* @__PURE__ */ u2("button", { class: classNames(displayClass, "readermode"), "aria-label": title, children: /* @__PURE__ */ u2(
"svg",
{
xmlns: "http://www.w3.org/2000/svg",

File diff suppressed because one or more lines are too long

2
dist/index.js vendored
View file

@ -339,7 +339,7 @@ function u2(e2, t2, n2, o2, i2, u3) {
// src/components/ReaderMode.tsx
var ReaderMode = ({ displayClass, cfg }) => {
const title = i18n(cfg?.locale ?? "en-US").components.readerMode.title;
return /* @__PURE__ */ u2("button", { class: classNames(displayClass, "readermode"), children: /* @__PURE__ */ u2(
return /* @__PURE__ */ u2("button", { class: classNames(displayClass, "readermode"), "aria-label": title, children: /* @__PURE__ */ u2(
"svg",
{
xmlns: "http://www.w3.org/2000/svg",

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -12,7 +12,7 @@ import styles from "./styles/readermode.scss";
const ReaderMode: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {
const title = i18n(cfg?.locale ?? "en-US").components.readerMode.title;
return (
<button class={classNames(displayClass, "readermode")}>
<button class={classNames(displayClass, "readermode")} aria-label={title}>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"