<flux:main> as a <main> tag or option to render as one / same with <flux:sidebar> and <nav> #640
Unanswered
oMikeo
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the spirit of Flux aiming to ensure things are accessible out of the box, I feel like
<flux:main>
should render a<main>
tag.Yes I could make a custom component since what
<flux:main>
provides is quite simple, but perhaps that is not the case in the future and I want to lean into future Flux features. Currently handling with a nested<main>
tag.<flux:sidebar>
is also just a<div>
when , given the intended purpose, it should perhaps be a<nav>
by default. Or better yet also have default aria<nav aria-label="Sidebar Navigation">
to make it distinguishable to SR users.Just for ref
<flux:navbar>
is already rendered with a<nav>
tag.Adjacent thought for documentation - include guidance or links to external resources about declaring aria-labels on nav components.
Beta Was this translation helpful? Give feedback.
All reactions