Skip to content
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) [Stack Monitoring] Ensures <dl> elements are structured correctly #134139

Open
rashmivkulkarni opened this issue Jun 9, 2022 · 8 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Stack Monitoring Project:Accessibility Team:Monitoring Stack Monitoring team

Comments

@rashmivkulkarni
Copy link
Contributor

rashmivkulkarni commented Jun 9, 2022

Stack Monitoring > Alerts Page > a11y violation seen

       Alerts Page:

      Error: a11y report:
 
 VIOLATION
   [definition-list]: Ensures <dl> elements are structured correctly
     Impact: serious
     Help: https://dequeuniversity.com/rules/axe/4.0/definition-list?application=axeAPI
     Elements:
       - <dl class="euiDescriptionList euiDescriptionList--row">
       at AccessibilityService.assertValidAxeReport (/Users/rashmikulkarni/Documents/kibana/test/accessibility/services/a11y/a11y.ts:76:13)
       at AccessibilityService.testAppSnapshot (/Users/rashmikulkarni/Documents/kibana/test/accessibility/services/a11y/a11y.ts:49:10)
       at processTicksAndRejections (node:internal/process/task_queues:96:5)
       at Context.<anonymous> (test/accessibility/apps/stack_monitoring.ts:52:5)
       at Object.apply (/Users/rashmikulkarni/Documents/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

It looks like this is because of the Logs panel. We've got a dl with a callout div as a child instead of a dt.

Screenshot from lighthouse:

CleanShot 2022-06-20 at 08 49 17@2x

This happens here

if (!props.logs.enabled) {
return (
<EuiDescriptionList>
<Reason reason={props.logs.reason} />
</EuiDescriptionList>
);
}
by having the Reason component as a child of the EuiDescriptionList.

✔️ Acceptance Criteria

  • Accessibility test pass
  • Callout renders correctly
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-accessibility (Project:Accessibility)

@botelastic botelastic bot added the needs-team Issues missing a team label label Jun 9, 2022
@smith smith added bug Fixes for quality problems that affect the customer experience Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Jun 13, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Jun 13, 2022
@smith
Copy link
Contributor

smith commented Jun 13, 2022

@rashmivkulkarni I'm not sure which page you're looking at (I don't see any top-level navigation for "Alerts Page" in Stack Monitoring.) Could you please provide some more information and/or a screenshot?

@rashmivkulkarni
Copy link
Contributor Author

The URL while this a11y violation happens is: http://localhost:5620/app/monitoring#/overview?_g=(cluster_uuid:Ne-khZBvQKWxlfCZoZQX2w,refreshInterval:(pause:!f,value:10000),time:(from:now-15m,to:now))
Screenshot here: violation happens right when am clicking [data-test-subj="alerts-modal-remind-later-button"]'
Screen Shot 2022-06-13 at 12 39 14 PM

@rashmivkulkarni
Copy link
Contributor Author

serious
Found on:
6/13/2022 at 12:42 PM
Found:
Automatically
Issue Tags:
cat.structure
wcag2a
wcag131
Issue Description
Ensures <dl> elements are structured correctly

Element location
.euiDescriptionList--row
Element source
<dl class="euiDescriptionList euiDescriptionList--row">
To solve this issue, you need to...
Fix the following:
List element has direct children that are not allowed inside <dt> or <dd> elements

This is the result which I got after running the axeTool on the page.

@rashmivkulkarni rashmivkulkarni added the Team:APM All issues that need APM UI Team support label Jun 13, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@smith
Copy link
Contributor

smith commented Jun 20, 2022

It looks like this is because of the Logs panel. We've got a dl with a callout div as a child instead of a dt.

Screenshot from lighthouse:

CleanShot 2022-06-20 at 08 49 17@2x

This happens here

if (!props.logs.enabled) {
return (
<EuiDescriptionList>
<Reason reason={props.logs.reason} />
</EuiDescriptionList>
);
}
by having the Reason component as a child of the EuiDescriptionList.

@smith smith removed the Team:APM All issues that need APM UI Team support label Jun 20, 2022
@smith
Copy link
Contributor

smith commented Jun 20, 2022

I updated the issue description to show the problem and steps to fix.

@smith smith added Team:Monitoring Stack Monitoring team and removed Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Stack Monitoring Project:Accessibility Team:Monitoring Stack Monitoring team
Projects
None yet
Development

No branches or pull requests

3 participants