mirror of
https://github.com/quartz-community/reader-mode.git
synced 2026-07-22 02:50:23 +00:00
fix: add aria-label to reader mode toggle button
This commit is contained in:
parent
e678efb753
commit
70380f3fcd
5 changed files with 5 additions and 5 deletions
2
dist/components/index.js
vendored
2
dist/components/index.js
vendored
|
|
@ -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/components/index.js.map
vendored
2
dist/components/index.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js
vendored
2
dist/index.js
vendored
|
|
@ -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
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue