diff --git a/index.js b/index.js index 66aa63e..22b699a 100644 --- a/index.js +++ b/index.js @@ -196,7 +196,7 @@ class DetailsDialogElement extends HTMLElement { const summary = details.querySelector('summary') if (summary) { - summary.setAttribute('aria-haspopup', 'dialog') + summary.setAttribute('role', 'button') summary.addEventListener('click', onSummaryClick, {capture: true}) }