Coder Social home page Coder Social logo

adamsilver / nostyle Goto Github PK

View Code? Open in Web Editor NEW
160.0 12.0 12.0 2.41 MB

NoStyle Design System by Adam Silver

Home Page: https://nostyle.onrender.com/

JavaScript 35.93% Shell 0.24% HTML 45.99% SCSS 17.84%
a11y component-library design-systems nodejs pattern-library css javascript forms

nostyle's Introduction

NoStyle Design System by Adam Silver

This contains all the stlyes, components and patterns from my book Form Design Patterns published by Smashing Magazine in 2018.

Enjoy.

nostyle's People

Contributors

adamsilver avatar crydust avatar domchristie avatar fnd avatar web-bert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nostyle's Issues

Autocomplete's aria-live region should clear itself out so it can't be navigated to

This happens in any screen reader. For example, with NVDA + Firefox:

  1. Go to https://nostyle.herokuapp.com/examples/autocomplete
  2. Tab to the control to focus it and type "states"
  3. Use NVDA + SPACE to switch out of forms mode and into browse mode
  4. Press ARROW_DOWN. Virtual cursor will be moved to the little dropdown arrow, which announces as "clickable" (could be an issue in and of itself)
  5. Press ARROW_DOWN again

Virtual cursor is moved to the hidden aria-live region, where user hears "3 results".

screenshot of NVDA focus highlight

This can be fixed by clearing out the contents of the aria-live region 500ms after it's been added.

W3C HTML validation issue with your validation script

On pages where you use your validation script you add directly into the DOM the following:

<div tabindex="-1" role="group" class="errorSummary hidden" aria-labelledby="errorSummary-heading"></div>

Although this is hidden prior to error, it causes a W3C validation error.

You can’t have the aria-labelledby at this point because the attribute must point to an element in the same document. At this point it has not been injected into the page.

It might be worth adding this attribute at the point of an error instead of adding it directly.

Stepper touch improvement

Hi there

Just saw your form design system in the Smashing newsletter. Checked it on mobile and thought I'd let you know that adding touch-action: manipulation; to the stepper component drastically improves the user experience since tapping on the - or + button multiple times in a row will most likely trigger a browser zoom (it will see this as a double-tap).

There is 90% browser support and no problem if older browsers will ignore this:
https://caniuse.com/?search=touch-action
https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.