Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number content with JavaScript, not CSS #4

Open
reubenlillie opened this issue Feb 6, 2019 · 1 comment
Open

Number content with JavaScript, not CSS #4

reubenlillie opened this issue Feb 6, 2019 · 1 comment
Labels
feature request New feature or request help wanted Extra attention is needed in progress We’re working on this now. Please check the issue notes.

Comments

@reubenlillie
Copy link
Owner

  • Create JavaScript for numbering
    • Parts
    • Chapters
    • Articles
    • Paragraphs, and subparagraps
  • Convert CSS counters to fallback feature when JS is deactivated

CSS content: value; declarations are not a part of the DOM. They are only rendered visually. Counters cannot be selected with a cursor, and they are not detectable by screen readers. JavaScript should replace counters by injecting <span> and <a> with insertAdjacentHTML('afterbegin', counter) to number subheads and paragraph/subparagraph <section>

@reubenlillie reubenlillie added feature request New feature or request help wanted Extra attention is needed labels Feb 6, 2019
@reubenlillie reubenlillie added active branch We’ve started a branch for developing this feature in progress We’re working on this now. Please check the issue notes. and removed active branch We’ve started a branch for developing this feature labels Feb 7, 2019
@reubenlillie
Copy link
Owner Author

I’ve added some JS to replace the CSS counters. We still need to set up a fallback for when JS is deactivated. And we still need to account for the different numbering systems in the various parts of the 2017–2021 edition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request help wanted Extra attention is needed in progress We’re working on this now. Please check the issue notes.
Projects
None yet
Development

No branches or pull requests

1 participant