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

react-component / switch / 82 / 3
92%
master: 92%

Build:
DEFAULT BRANCH: master
Ran 12 Sep 2018 02:19PM UTC
Files 2
Run time 1min
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

12 Sep 2018 02:17PM UTC coverage: 91.667% (-2.9%) from 94.595%
TEST_TYPE=coverage

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%)

33 of 36 relevant lines covered (91.67%)

12.58 hits per line

Source Files on job 82.3 (TEST_TYPE=coverage)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 78
  • Travis Job 82.3
  • 43b67e6e on github
  • Prev Job for TEST_TYPE=coverage on master (#78.3)
  • Next Job for TEST_TYPE=coverage on master (#84.3)
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

© 2026 Coveralls, Inc