WestpacCXTeam / GUI-source

Westpac GUI source code
http://WestpacCXTeam.github.io/GUI-source
GNU General Public License v2.0
37 stars 19 forks source link

Update button documentation #422

Closed jonnystening closed 6 years ago

jonnystening commented 6 years ago

ref https://gel.westpacgroup.com.au/GUI/WBC/buttons/

Update the 'Button tags' note text to the following...

Note: use native HTML buttons to trigger in-page functionality and the <code class="classes"><a></code> element for hyperlinks. Don’t rely on the button role (<code>role="button"</code>) to make <code class="classes"><a></code> elements more button-esque. Native HTML buttons are more widely supported by older user agents and assistive technology. See <a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role" target="_blank">Using the button role</a>

Also remove the role="button" attribute from the <a> example

jonnystening commented 6 years ago

Best to carry this out for all button version's, not just the current version