wiki/quartz/components/scripts
Andrew 4c9e860150
a11y(darkmode): use a button for the theme toggle (#1335)
* Use a `<button>` for theme toggle

* docs: Adds back Xinyang's cs garden to showcase (#1323)

adding back my garden which was deleted from the cleanup showcase

* feat(toc,explorer): add accessibility for toggle (#1327)

* Restore focus highlight on explorer toggle button.

Remove `unset: all` declaration causing `outline`
property to be unset. This allows the default
browser focus highlight to be shown.

* Fix semantics of expandable sections (explorer, toc).

This adds the appropriate aria attributes for the [disclosure pattern](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-image-description/#javascriptandcsssourcecode) and uses `visibility: hidden` to remove the hidden elements from the focus order without disrupting the animations. Further work is needed on the tree view nodes.

* Run prettier for SCSS files.

* feat: custom global latex macros (closes #1325)

* chore: ts fixes

* docs: recommend at least node 20 in gh

* fix: unmemoize explorer on rebuild (closes #1077)

* fix: pass buildId to worker

* Fix theme button DOM hierarchy and styles

* Restore functionality of theme button

* `aria-label` on theme svgs so their accessible labels are included in button content

---------

Co-authored-by: Xinyang Yu <47915643+xy-241@users.noreply.github.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-08-24 13:33:30 -07:00
..
callout.inline.ts chore: add window.addCleanup() for cleaning up handlers 2024-02-01 21:19:51 -08:00
checkbox.inline.ts feat: support checkbox (closes #646) (#799) 2024-02-04 22:19:25 -08:00
clipboard.inline.ts chore(cleanup): misc refactoring for cleanup, fix some search bugs 2024-02-01 23:55:11 -08:00
comments.inline.ts refactor(comments): move script to files (#1308) 2024-08-05 15:17:11 -04:00
darkmode.inline.ts a11y(darkmode): use a button for the theme toggle (#1335) 2024-08-24 13:33:30 -07:00
explorer.inline.ts feat(toc,explorer): add accessibility for toggle (#1327) 2024-08-08 18:07:47 -07:00
graph.inline.ts chore(deps-dev): bump prettier from 3.3.2 to 3.3.3 (#1293) 2024-08-05 18:38:07 -07:00
popover.inline.ts Fix Non-English Anchor Popover Positioning Issue and Update Type Hint (#1252) 2024-07-08 13:34:43 -07:00
search.inline.ts feat(search): keyboard-accessible search button (#1331) 2024-08-09 18:46:50 -07:00
spa.inline.ts chore: add window.addCleanup() for cleaning up handlers 2024-02-01 21:19:51 -08:00
toc.inline.ts feat(toc,explorer): add accessibility for toggle (#1327) 2024-08-08 18:07:47 -07:00
util.ts feat(search): keyboard-accessible search button (#1331) 2024-08-09 18:46:50 -07:00