-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiConfirmModal] Title should be wrapped in an HTML heading if provided as a string
#5276
Comments
Pinging @elastic/kibana-accessibility (Project:Accessibility) |
Pinging @elastic/kibana-design (Team:Kibana-Design) |
This can't be changed in Kibana , it should be moved to EUI |
Thanks for the followup @kertal. I moved this to EUI and have re-tagged it. |
@1Copenut The EuiModal component doesn't create the heading level directly. All of our docs examples shows wrapping the title text in an
The statement that was made:
Is actually false, as all they need to do is wrap their title text in a HTML heading. |
If we need to, in the EUI docs, we can add a strong callout identifying this aspect. But it would be a truly harsh update to those who were copying the examples properly to have to unwrap all their text. |
I spoke somewhat too harshly too soon, it does look like our EuiConfirmModal specifically doesn't wrap the |
string
@kertal I wanted to follow up on this issue. I made a change to our EUI component to wrap strings in an H1, but I'm still seeing DIV containers in Kibana 8 on the main branch locally. If consumers are passing in a legitimate React element, the component will not override it with a heading. Is there additional action Kibana teams can make, or does this issue have a longer tail than we first thought? |
@1Copenut your fix isn't yet in Kibana - the upgrade PR is still open (elastic/kibana#122386). I would wait until that PR lands to check the main branch, or check that branch directly |
Thank you @constancecchen |
Steps to reproduce
Actual Result
Expected Result
Kibana Version:
v8.0.0
OS:
MacOS Big Sur
Browser:
Chrome
Relevant WCAG Criteria: Understanding Success Criterion 1.3.1: Info and Relationships - Level A
The text was updated successfully, but these errors were encountered: