junjizhi / junji-blog

My own blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prepare the combobox repo

junjizhi opened this issue · comments

Work on the combobox repo and publish a package on the npm.

Goal

  • Publish npm package on npm
  • Explain how it works, and establish my reputation as a11y authority

Why extend the existing ARIA v1.2 reference implementation?

  • Most important: Missing some aria-* attributes and their changes
  • Missing callbacks that enable us to build cascaded comboboxes
    • The reference implementation has hard coded list of options, while in reality, the list option may be fetched from server on an Ajax call, which requires changes to the code.
  • (Minor impropvements) Cleaned up some dead comments from their code

How to use this repo?

  • Copy the code as it is in ES6 syntax

What about existing npm packages?

  • Analyze how existing npm / React page, how it renders the HTML

done.