To make them accessible via CSS, similarly to what has been done with
the brackets of the edit buttons.
Change-Id: I6b961b5f11f81e6e8ef768ba43fe7f20b886051a
.text( collapseText )
.wrap( '<span class="mw-collapsible-toggle"></span>' )
.parent()
.text( collapseText )
.wrap( '<span class="mw-collapsible-toggle"></span>' )
.parent()
- .prepend( ' [' )
- .append( '] ' )
+ .prepend( '<span class="mw-collapsible-bracket">[</span>' )
+ .append( '<span class="mw-collapsible-bracket">]</span>' )
.on( 'click.mw-collapsible keypress.mw-collapsible', actionHandler );
};
.on( 'click.mw-collapsible keypress.mw-collapsible', actionHandler );
};