Skip to content

Commit

Permalink
MWPW-141780 - Clean up Accordion block attributes (#2276)
Browse files Browse the repository at this point in the history
remove role attribute on dd elements

Co-authored-by: Okan Sahin <39759830+mokimo@users.noreply.github.com>
  • Loading branch information
elan-tbx and mokimo authored May 14, 2024
1 parent 51b6bef commit 3576061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/blocks/accordion/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function createItem(accordion, id, heading, num, edit) {
const dtAttrs = hTag ? {} : { role: 'heading', 'aria-level': 3 };
const dtHtml = hTag ? createTag(hTag.tagName, { class: 'accordion-heading' }, button) : button;
const dt = createTag('dt', dtAttrs, dtHtml);
const dd = createTag('dd', { role: 'region', 'aria-labelledby': triggerId, id: panelId, hidden: true }, panel);
const dd = createTag('dd', { 'aria-labelledby': triggerId, id: panelId, hidden: true }, panel);
const dm = createTag('div', { class: 'media-p' });

if (edit) {
Expand Down

0 comments on commit 3576061

Please sign in to comment.