-
Notifications
You must be signed in to change notification settings - Fork 25
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
Accessibility updates for base.html #1023
Comments
@lwrubel What do you mean by "a main tag" in item 1 above? |
From Max's comment in the accessibility review doc: |
I'm not sure what doing In any case, it should be redundant have |
@kerchner See @maxstarkenburg's comment on bypass blocks: "I would still recommend for these pages a hidden but focusable skip link at the top of the DOM that skips over the nav and breadcrumbs to the h1." |
FWIW, just peeking into the bootstrap CSS, it looks like they have a |
…th value of status or alert; changes user profile link to button; code tidying. Ref #1023.
…th value of status or alert; changes user profile link to button; code tidying. Ref #1023.
It looks like the blue color change is due to the |
@maxstarkenburg I wonder if you can recommend a solution here. I see on the library site:
The way I've currently implemented this -- see https://github.com/gwu-libraries/sfm-ui/blob/t1023-accessibility-base-html/sfm/ui/templates/base.html#L83-L108 -- the cookie consent code is always present in the DOM, just not visible. If I place the skip link first, the tab order will always start there, which is not good when we want the user to start in the cookie consent (when the consent is visible). But if I place the cookie consent first, the user will have to tab through the invisible cookie consent even when it's invisible and they have already consented, to get to the skip link. From your experience, what might be a simple way to solve this? |
@maxstarkenburg re: button color - Thank you, I didn't realize that the button color was unnecessary for accessibility. I've reverted the color to the current look, although it is now a |
Re: the cookie notice: In a case like this, I'd recommend trying to somehow get the cookie notice to have
|
Edit: I think I was overthinking things related to animating
|
@maxstarkenburg the last suggestion worked well. Tab order is correct in both states, and there is no adverse effect on fade in / fade out. |
Great. I also decided to go ahead and make a pull request in the original creator's repo so that hopefully other folks might get such a change (also noticed their mystery use of |
Nice! Should I also make a modification to the code where I used |
Yeah, that would be good. In my PR'd commits, I just removed it from the markup. |
done |
Lower priority, but review as an option:
For further accessibility details see #1004
The text was updated successfully, but these errors were encountered: