Skip to content

Commit

Permalink
fix(ByRole): when hidden logs have the name
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciuslagedo committed Oct 5, 2022
1 parent fdee23f commit 57aa847
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/role-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ function prettyRoles(dom, {hidden, includeDescription}) {
const elementsString = elements
.map(el => {
const nameString = `Name "${computeAccessibleName(el, {
hidden,
computedStyleSupportsPseudoElements:
getConfig().computedStyleSupportsPseudoElements,
})}":\n`
Expand All @@ -206,6 +207,7 @@ function prettyRoles(dom, {hidden, includeDescription}) {
const descriptionString = `Description "${computeAccessibleDescription(
el,
{
hidden,
computedStyleSupportsPseudoElements:
getConfig().computedStyleSupportsPseudoElements,
},
Expand Down

0 comments on commit 57aa847

Please sign in to comment.