From: Muhannad Abdelrazek Date: Wed, 26 Jul 2017 17:45:08 +0000 (+0200) Subject: A11y: Enhance dropdown examples. (#908) X-Git-Tag: 0.5.0~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7e49a4dc3c2226f41db3a47d7e37782b068bcf1;p=thirdparty%2Fbulma.git A11y: Enhance dropdown examples. (#908) - use button to can reach by keyboard and make a user with screen reader understand that's is a button. - add aria-haspopup to make screen reader user understand this button have a drop-down. - add aria-controls to make screen reader user understand this button control on items called x. - should add aria-expanded by JS when user toggle button. - add aria-hidden to icons. - add href=# to links to make it a link we can interact with a keyboard. - add role menu to menu drop-down to make sure this div is a menu. - should add aria-hidden by JS and toggle it by button expanded. --- diff --git a/docs/documentation/components/dropdown.html b/docs/documentation/components/dropdown.html index 20227caac..7ff7d61d1 100644 --- a/docs/documentation/components/dropdown.html +++ b/docs/documentation/components/dropdown.html @@ -7,29 +7,29 @@ doc-subtab: dropdown {% capture dropdown_example %}