Open PaulSumner-Sage opened 1 month ago
@tempertemper can we just check whether this is a false positive caused by the use of Portals here?
@tempertemper any thoughts on the above
After discussing with @tempertemper, we noticed that Toast
has no semantic meaning, just a <div>
with text content.
Since Toast
is designed for status announcements or alerts, adding a role of "status" or "alert" should address the semantic issue, which may also resolve the axe violation.
FE-6655
Description
Axe report output:
Issue Description: Error: All page content should be contained by landmarks Ensures all page content is contained by landmarks -https://dequeuniversity.com/rules/axe/4.8/region?application=AxeChrome
Element Location: .Hlivg
To solve this issue, you need to…: Some page content is not contained by landmarks
Reproduction
https://carbon.sage.com/?path=/story/toast--notice
Steps to reproduce
No response
JIRA ticket numbers (Sage only)
SBS-95481
Suggested solution
No response
Carbon version
130.0.0
Design tokens version
No response
Relevant browsers
Chrome
Relevant OSs
MacOS
Additional context
No response
Confidentiality