Skip to content

Commit

Permalink
Update label_name_visible.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shunguoy committed Oct 24, 2024
1 parent 712c8d2 commit ffee74b
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const label_name_visible: Rule = {
// skip the checks if it has an aria-labelledby since it takes precedence.
} else {
let theLabel = null;
/**if (theLabelBy && !CommonUtil.isIdReferToSelf(ruleContext, theLabelBy)) {
if (theLabelBy && !CommonUtil.isIdReferToSelf(ruleContext, theLabelBy)) {
let labelValues = theLabelBy.split(/\s+/);
for (let j = 0; j < labelValues.length; ++j) {
let elementById = FragmentUtil.getById(ruleContext, labelValues[j]);
Expand All @@ -98,12 +98,6 @@ export const label_name_visible: Rule = {
if (!theLabel) {
return null;
}
*/
const accName = AccNameUtil.computeAccessibleName(ruleContext);
if (!accName || !accName.name || accName.name.trim().length ===0)
return;

theLabel = accName.name.trim();

let text = null;

Expand Down

0 comments on commit ffee74b

Please sign in to comment.