• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

react-component / switch / 82
92%

Build:
DEFAULT BRANCH: master
Ran 12 Sep 2018 02:19PM UTC
Jobs 1
Files 2
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
82

push

travis-ci

zombieJ
Improve a11y by using button with role switch (#26)

* Improve a11y by using button with role switch

As for [mozilla switch guidelines](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_switch_role)
Plus I switched `span` for `button` to get support for `Enter` and `Space`  keys out of the box (now the browser will take care about it and that's why I deleted the test, cause enzyme doesn't fire `onClick` on such keypresses, but the browsers will do)

* Add type=button to not accidentally trigger submit

37 of 65 branches covered (56.92%)

1 of 1 new or added line in 1 file covered. (100.0%)

33 of 36 relevant lines covered (91.67%)

12.58 hits per line

Jobs
ID Job ID Ran Files Coverage
3 82.3 (TEST_TYPE=coverage) 12 Sep 2018 02:19PM UTC 0
91.67
Travis Job 82.3
Source Files on build 82
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #82
  • 43b67e6e on github
  • Prev Build on master (#78)
  • Next Build on master (#84)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc