nomcopter / react-mosaic

A React tiling window manager
https://nomcopter.github.io/react-mosaic/
Other
4.39k stars 226 forks source link

Heading levels should only increase by one #178

Closed Shane79717 closed 2 years ago

Shane79717 commented 2 years ago

Hello,

We are currently experiencing an accessibility issue that has been reported back by Axe. According to the report, it indicates that the header levels should only increase by one, highlighting an <h4> tag as the area for further analysis. Looking through our code base along with the dependency itself, the problem seems to be around the heading: "No Windows Present". Is there a possibility that this element could be changed to something else? Or alternatively, do you have any suggestions on how to resolve it?

Issue Description Ensures the order of headings is semantically correct

Element location h4

Element source <h4>Main</h4> To solve this issue, you need to... Fix the following: Heading order invalid

nomcopter commented 2 years ago

The zeroStateView prop of Mosaic let's you customize this view in order to change what is rendered there.

Shane79717 commented 2 years ago

The zeroStateView prop of Mosaic let's you customize this view in order to change what is rendered there.

I managed to find a resolution to our problem using the prop you mentioned above. Thanks for the feedback.