Markup View: show an ellipsis character in collapsed nodes

Issue #2
This commit is contained in:
janekptacijarabaci 2018-02-02 20:32:00 +01:00 • committed by Roy Tam
commit 2d167f91a8
2 changed files with 20 additions and 1 deletions

View file

@ -211,10 +211,12 @@ MarkupContainer.prototype = {
}
if (this.showExpander) {
this.elt.classList.add("expandable");
this.expander.style.visibility = "visible";
// Update accessibility expanded state.
this.tagLine.setAttribute("aria-expanded", this.expanded);
} else {
this.elt.classList.remove("expandable");
this.expander.style.visibility = "hidden";
// No need for accessible expanded state indicator when expander is not
// shown.