From 57aa847c6bb40c9d447b7f446131da6cb1e5c48b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Lag=C3=AAdo?= Date: Wed, 31 Aug 2022 09:44:18 -0300 Subject: [PATCH] fix(ByRole): when hidden logs have the name --- src/role-helpers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/role-helpers.js b/src/role-helpers.js index 500bcdd2..6103343e 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, },