@vanzasetia
Posted
Hi, Matthew Millard! 👋
I recommend making the <body>
element a flex container of the cards to place the cards in the middle of the page. This modern technique is more robust than absolute positioning and has less code to write.
I notice that there is a hidden <h1>
— <h1 class="hidden">3-Column Preview Card Component</h1>
. But, it is not a visually hidden <h1>
—it is completely a hidden <h1>
. It means that the element is not visible to users and assistive technologies. In other words, it is the same as the page not having <h1>
.
The reason for that is because visibility: hidden
is removing the element from being accessible—removing the element from the accessibility tree.
You should know the correct visually hidden styling. This way, the <h1>
would still be accessible.
- The anatomy of visually-hidden - TPGi
- See visually hidden styling — How-to: Hide content - The A11Y Project
- Full accessibility tree in Chrome DevTools
I hope you find this useful. 🙂
Marked as helpful
@matthew-millard
Posted
@vanzasetia Thank you so much for taking the time to give me feedback and providing those resources on accessibility. I have spent a big part of today going down the accessibility rabbit hole :)
Cheers
Matthew
@vanzasetia
Posted
@matthew-millard
You are welcome! Good luck with learning web accessibility! 👍