-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #2483. Markup fixes (SVG alternatives, invalid code, unnecessary role="button"
, account dropdown trigger)
#2484
Conversation
…="button" - `aria-role="hide"` is invalid/non-existent markup - if a control already has text, it's redundant to have `<title>` and extra text for an SVG - just set it to `aria-hidden="true"` and remove any text in it - `aria-label` on the focusable control is generally easier/better if providing a name/label to a control, rather than `<title>` inside the SVG, in cases no other text content is present - *never* ever `aria-hidden="true"` a focusable element (as was the case with the "Close search" button) - having `role="button"` on a `<button>` is unnecessary
- `aria-expanded` is probably more appropriate than `aria-pressed` - make sure the aria attribute is changed on the actual `<button>`, not on the `<li>` (this could likely also be fixed by changing the `var navDropDown = ...` but I wasn't sure if there were perhaps other dependencies on that being the `<li>`
worth noting: i did not try to compile/run the site locally, just edited the files "dry" |
Travis tests have failedHey @patrickhlauke, 1st Buildnosetests
npm run test:js -- --reporters="runner" --firefoxBinary=`which firefox`
|
Thanks @patrickhlauke for your work <3 Just to give some context, the SVG title were added due to a SVG bug in Firefox nightly 59 (AFAIR). |
@zoepage worst case, not sure about the failure @TravisBuddy is reporting there. is the test that fails looking for specific html that was optimized away? (i'm a bit of a dope when it comes to all this hip technology like CI etc...) |
worked out what the deal was with the failing unit test, i think... |
(missed this in the previous commit)
to reflect the changes made to the SVG alternative text
d734fd1
to
04a58eb
Compare
Ah cool! This replicates part of the pull request in #2473. |
👍 ❤️ |
Cool, I'll do that. |
role="button"
, account dropdown trigger)role="button"
, account dropdown trigger)
I don't see this bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Patrick!
Oops, I linked the wrong issue. :P |
role="button"
, account dropdown trigger)role="button"
, account dropdown trigger)
Follow-up to webcompat#2484 due to a silly typo... r? @miketaylr
No issue. Fix typo in footer SVG markup Follow-up to #2484.
Follow-up to #2484 due to a silly typo... r? @miketaylr
Follow-up to webcompat#2484 due to a silly typo... r? @miketaylr
Issue #2483 - fixes incorrect/unnecessary SVG alternative text, removes invalid
aria-role="hide"
, removes unnecessaryrole="button"
on<button>
elements, fixes up the currently broken aria on the account dropdown triggerr? @miketaylr