Iota-School / notebooks-for-all

https://iota-school.github.io/notebooks-for-all/
Other
18 stars 6 forks source link

add a new configuration file for tabbing headings. #36

Closed tonyfast closed 1 year ago

tonyfast commented 1 year ago

@Jenneh @smythp it was a great hang today. thanks for the feedback and excitement.

this pull request adds a feature that y'all might consider testing. on top of tabbing to cells the h_is_link flag lets folks tab to headings.

the existing exporter we want to override provides an id for each heading and an anchor link screenshot

an option would be to use this marker and add an aria-describedby.

the implementation i chose removes the anchor link and make the heading a link. this small change deletion makes all of the headings available in the accessibility tree.

image

y'all can try an example with tabs to heading and code cells. https://iota-school.github.io/notebooks-for-all/exports/Imaging_Sky_Background_Estimation-tab-to-content-nav-high-contrast.html

@isabela-pf i think that this might be a solution for the table of contents you wanted. if you think there should be a skip link area for a denser of table of contents we can do that too. i'm curious to hear if these heading links suit your needs.

tonyfast commented 1 year ago

self merging cause folks are testing today and we shouldn't break anything.