Skip to content

Commit 623c7d2

Browse files
committed
Fix accessibility role for image block with legend
1 parent 2dc071b commit 623c7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/classes/ImageBlock.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ImageBlock extends AbstractDomElement {
1515
const el = this._element
1616
const figure = el.closest('.wp-block-image')
1717

18-
figure.setAttribute('role', 'group')
18+
figure.setAttribute('role', 'figure')
1919
figure.setAttribute('aria-label', el.textContent)
2020
}
2121
}

0 commit comments

Comments
 (0)