Commit e80d5d0d authored by Ilya Tregubov's avatar Ilya Tregubov
Browse files

Bug 1645188: Remove aria-hidden for comment ratings to make them accessible

behatnotneeded

Change-Id: I96954cf5303454b71c8674eab2286b5d582719c5
parent 96a54e56
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -36,11 +36,11 @@
            });

            // Add 'no rating' glyph
            this.append('<span title="' + get_string('removerating', 'artefact.comment') + '" tabindex="0" data-value="0" class="ratingicon icon ' + settings.offglyph + '" style="' + style + '" aria-hidden="true"></span>');
            this.append('<span title="' + get_string('removerating', 'artefact.comment') + '" tabindex="0" data-value="0" class="ratingicon icon ' + settings.offglyph + '" style="' + style + '" aria-hidden="false"></span>');

            // Loop through the glyphs
            for (var i = 0; i < settings.limit; i++) {
                this.append('<span  title="' + get_string('ratingoption', 'artefact.comment', i+1, settings.limit) + '" tabindex="0" data-value="' + (i+1) + '" class="ratingicon icon ' + settings.glyph + '" style="' + style + '" aria-hidden="true"></span>');
                this.append('<span  title="' + get_string('ratingoption', 'artefact.comment', i+1, settings.limit) + '" tabindex="0" data-value="' + (i+1) + '" class="ratingicon icon ' + settings.glyph + '" style="' + style + '" aria-hidden="false"></span>');
            }

            // Paint the glyphs