-
Notifications
You must be signed in to change notification settings - Fork 4
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
Need to define requirements and strategy for javascript #33
Comments
Some notes. Alert There's a great example on the main WAI-ARIA site: https://www.w3.org/TR/wai-aria-practices/examples/alert/alert.html With a practical example: https://heydonworks.com/practical_aria_examples/#offline-alert Accordions https://github.com/scottaohara/a11y_accordions Tabs https://github.com/scottaohara/a11y_tab_widget Off-Canvas Menu Best Vanilla JS solution I've found: https://github.com/toomuchdesign/offside Minimal alternative: https://codepen.io/marcysutton/pen/JoQqVw Possibility to do it with just CSS: https://css-tricks.com/off-canvas-menu-with-css-target/ Breadcrumbs https://scottaohara.github.io/a11y_breadcrumbs/ Tooltips (No JS) https://codepen.io/mpiotrowicz/pen/PwQYMd Icon Buttons https://www.sarasoueidan.com/blog/accessible-icon-buttons/ Literally the only post you'll need Dropdown Buttons https://a11y-guidelines.orange.com/web_EN/exemples/simple-menu/simple-menu.html |
That's great, thanks Richard. I (sadly) found a carousel that might work: |
Group notes: RecommendationThe group revisited this and recommends moving forward with a series of small, optional javascript utility scripts over adopting a framework's javascript wholesale. These scripts could either be bespoke javascript or individual 'plugins' that can be updated, included, dropped as required. Keeping them decoupled allows for greater ease of use, performance and flexibility. Scripts requiredUsing the current Bootstrap javascript utilities as a guide, we went through each and made note of our need to carry these forward or leave them behind / for another time as determined by need.
|
Is your feature request related to a problem? Please describe.
The project currently has no handling for javascript. As Bootstrap is not being used and jQuery is something we want to avoid, we need to identify and implement a suitable replacement.
Describe the solution you'd like
I think there are several parts to this initial step:
1. Current features vs those of several frameworks
2. Framework quick assessment
Material.io https://github.com/material-components/material-components-web
Gov.UK https://github.com/alphagov/govuk-frontend
USWDS https://github.com/uswds/uswds
ACDS https://github.com/govau/design-system-components/
Bootstrap 4 https://github.com/twbs/bootstrap
3. Tooling needed
This could be altered depending on the approach we take, but my assumption at this point is we will need Babel and one of jslint / eslint / etc.
Describe alternatives you've considered
It is possible to write our own js from scratch, but this seems like a worst case scenario in terms of initial and ongoing effort.
The text was updated successfully, but these errors were encountered: