Make the Gallery block not use <ul> tags #12509
Labels
[Block] Gallery
Affects the Gallery Block - used to display groups of images
Needs Accessibility Feedback
Need input from accessibility
Needs Design Feedback
Needs general design feedback.
Does the gallery block have to use
<ul>
and<li>
elements? It's not correct, a picture gallery is not an unordered list. Plus it creates possible styling conflicts. Gutenberg styles actual unordered lists without any CSS classes. So there is a likely scenario where theme author could style unordered lists by target the parent post container.post-content ul
in that case this CSS styling risks being passed along toul.wp-block-gallery
I suppose a quick fix would be to make Gutenberg apply a CSS class to both unordered and ordered lists for theme authors to target, but I still have to point out that an image gallery is not an unordered list.
The text was updated successfully, but these errors were encountered: