Comments (3)
Hey @simurai 👋
Problem 1
When using no <SubdomainNavBar.Link>, but only a <SubdomainNavBar.SecondaryAction>, on narrow viewports the hamburger menu button (to access the <SubdomainNavBar.SecondaryAction>) is missing.
Thanks for flagging. Burger menu button currently only appears when links are present. We can update to include both primary and secondary actions.
Next steps:
- Update SubdomainNavBar burger menu visibility logic to include CTAs
- Design review for location of buttons, which would appear at the bottom of an otherwise empty menu
Problem 2
With a viewport of 320x256 the title (Home) link should still be visible.
This was an intentional design choice. We even encourage use of our nav bar without the header in some cases.. Wonder if we could use an aria-label or similar to convey this information instead 🤔 We can check in with a11y team on next steps to remediate this one. Thanks for flagging.
cc. @natalie-iv
from brand.
Wonder if we could use an aria-label or similar to convey this information instead
How I understood https://github.com/github/accessibility-audits/issues/7085, using aria-label
wouldn't resolve the issue, since it's not screen reader related.
they will not be able to know the disappeared contents present on the page due to which they will miss the information, which can block their further actions.
I think the issue is that if we show some information to desktop users, mobile users should have access to the same information. So if desktop users see the subdomain, then mobile should also have a way to see the subdomain. One might can try to argue that the subdomain is "non-essential" or "decorative", but not sure if that's acceptable in this case.
The only two options I can think of:
Option A
Remove the title/subdomain (GitHub Universe
) altogether (for desktop + mobile). Pages will need another way to communicate that.
Wide viewport | Narrow viewport |
---|---|
Option B
Move the title/subdomain (GitHub Universe
) into the hamburger menu as the first item. It won't initially be visible on mobile, but can still be accessed when opening the hamburger menu.
Wide viewport | Narrow viewport | Narrow viewport (menu open) |
---|---|---|
Personally I would go with option B since having the subdomain is quite nice. I pinged the accessibility team to verify if that's ok, or if there is another way to resolve this issue.
from brand.
From https://github.com/github/accessibility-audits/issues/7085#issuecomment-1870652455
the audit issue isn't about conveying info to screen reader users, it's about ensuring people who magnify their screen (and people on mobile) don't have interactive controls vanish on them. As long as they can still get to the controls on the same page through standard navigation/interaction mechanisms, that fixes the problem.
So yes, option B would fix the issue by moving the title/subdomain (GitHub Universe
) into the hamburger menu.
from brand.
Related Issues (20)
- [Accessibility] Visual name and aria-label are different for 'GitHub' control HOT 1
- [Accessibility] Add a "Skip To Content" button to `SubdomainNavBar` HOT 4
- [Accessibility] Improve overflowing of `SubdomainNavBar` on mobile
- Prose: support additional HTML tags HOT 2
- Missing `Animation.module.css` in the build and published artifact HOT 2
- Logo suite with many logos + reduced motion HOT 2
- Add support for directional border to Box
- 🐛 [BUG] - Spacing on River Breakout HOT 3
- [Feature request] Add support for other fonts
- 🐛 [BUG] - FAQ Item click area overlaps with FAQ Anser
- 🐛 [BUG] - InlineLink does not inherit size HOT 7
- [Feature request] Add support for multiple `AnchorNav.Action` HOT 3
- 🐛 [BUG] - `Prose`'s unordered lists do not play well with dark mode
- [Suggestion]: Add documentation around Stack breakpoints
- 🐛 [BUG] - Regression of `leadingVisual` on `TextInput` HOT 1
- 🐛 [BUG] - Button Gap on Medium Size should be 4px (0.25rem) instead of 12px. HOT 5
- [Feature request] Allow `<Label>` in River + Bentos HOT 1
- 🐛 [BUG] - `padding-inline-start` does not set in Timeline.Item component HOT 2
- [Accessibility] `FAQ.Item` is not getting closed using 'ESC' key
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brand.