Skip to content

Commit 71fcffb

Browse files
fix(ByRole): when hidden logs have the name
1 parent cc8c55b commit 71fcffb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/role-helpers.js

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ function prettyRoles(dom, {hidden, includeDescription}) {
196196
const elementsString = elements
197197
.map(el => {
198198
const nameString = `Name "${computeAccessibleName(el, {
199+
hidden,
199200
computedStyleSupportsPseudoElements:
200201
getConfig().computedStyleSupportsPseudoElements,
201202
})}":\n`
@@ -206,6 +207,7 @@ function prettyRoles(dom, {hidden, includeDescription}) {
206207
const descriptionString = `Description "${computeAccessibleDescription(
207208
el,
208209
{
210+
hidden,
209211
computedStyleSupportsPseudoElements:
210212
getConfig().computedStyleSupportsPseudoElements,
211213
},

0 commit comments

Comments
 (0)