diff --git a/src/role-helpers.js b/src/role-helpers.js index 500bcdd21..6103343e8 100644 --- a/src/role-helpers.js +++ b/src/role-helpers.js @@ -196,6 +196,7 @@ function prettyRoles(dom, {hidden, includeDescription}) { const elementsString = elements .map(el => { const nameString = `Name "${computeAccessibleName(el, { + hidden, computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements, })}":\n` @@ -206,6 +207,7 @@ function prettyRoles(dom, {hidden, includeDescription}) { const descriptionString = `Description "${computeAccessibleDescription( el, { + hidden, computedStyleSupportsPseudoElements: getConfig().computedStyleSupportsPseudoElements, },