-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiDescribedFormGroup] Reintroduce fieldset
/legend
#3032
Comments
CC @cchaos @miukimiu |
I'm not sure this is connected to #2493 since this issue is directed at the EuiDescribedFormGroup which is really input/input row agnostic. So right now the component uses <div role="group" class="euiDescribedFormGroup">
<div class="euiFlexGroup">
<div class="euiFlexItem">
<h3 class="euiDescribedFormGroup__title">
<!--- TITLE --->
</h3>
<div class="euiDescribedFormGroup__description">
<!--- DESCRIPTION --->
</div>
</div>
<div class="euiFlexItem">
<!--- FORM ROW --->
</div>
</div>
</div> We could potentially nix the <fieldset class="euiDescribedFormGroup">
<legend>
<h3 class="euiDescribedFormGroup__title">
<!--- TITLE --->
</h3>
<div class="euiDescribedFormGroup__description">
<!--- DESCRIPTION --->
</div>
</legend>
<div class="euiDescribedFormGroup__formRow">
<!--- FORM ROW --->
</div>
</fieldset> |
Do we want the I imagine the |
I thought screenreaders only read the legend on the first input that gets focused then as they move through the fieldset, it doesn't reread the legend. At least that's how it's working with Mac's VO. |
JAWS, Window's most popular screen reader, adds it after each form element |
Then, I supposed, yes, you could just wrap the heading and not the description in the |
Oh wait, sorry, I forgot this whole chain of thought. Nope, if |
Then maybe we do include it in the I think it would be better than what we have now at the very least... |
fieldset
/legend
into EuiDescribedFormGroup
fieldset
/legend
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed. |
❌ Per our previous message, this issue is auto-closing after having been open and inactive for a year. If you strongly feel this is still a high-priority issue, or are interested in contributing, please leave a comment or open a new issue linking to this one for context. |
Originally, it was
div[role=group]
with nolegend
.Then in #2783 we changed it to use
fieldset
/legend
with somearia-hidden
andScreenReaderOnly
gymnastics to solve all the a11y and design issues.Then in #2888 we discovered we might have made the a11y worse so we largely reverted the change in #2989.
We still want to introduce
fieldset
andlegend
into our form layouts but we gotta be careful about how...Maybe we need to first come up with a plan for #2493 before tackling this? That would, potentially, give us a more prescriptive usage pattern for developers to use which might loosen up the abstract nature of the a11y and design issues...
The text was updated successfully, but these errors were encountered: