Fix for making the Guidance/Comments sections of plan accessible by (#2283)
* Fix for making the Guidance/Comments sections of plan accessible by
tabbing. The links were not accessible by keyboard tabbing.

Change:
- added tabindex="0" to links within Guidance/Comments sections as a
hack as they were being ignored as links for tabbing. According to https://webaim.org/techniques/keyboard/tabindex

   tabindex="0"
      - allows elements besides links and form elements to receive
      keyboard focus. It does not change the tab order, but places the element
      in the logical navigation flow, as if it were a link on the page.
      - a value of 0 indicates that the element should be placed in the default navigation order.
      This allows elements that are not natively focusable (such as <div>, <span>, <p>, and <a> with no href)
      to receive keyboard focus. Links and form controls are best for almost all interactive elements,
      but tabindex="0" allows other elements to be focusable and able to trigger interaction.

Fix for #1444.

* Updated gem for nokogiri.
dev
1 parent 3364099 commit 84de390772d9701c5c9c0b1e50d0eeb950ad7d4c
@John Pinto John Pinto authored on 26 Nov 2019
Sam Rust committed on 26 Nov 2019
Showing 1 changed file
View
app/views/phases/_guidances_notes.html.erb