Adjust styles and code to support custom list bullets
Tweak specificty of the rule that hides bullets so that it is easy to override. Move dir and lang attributes from <li> to <a> so that the bullets appear on the correct side for reverse directionality scripts. Change-Id: Ic0d0c5220b0b374c2a3a19023c40d81f3e20007c
This commit is contained in:
committed by
Santhosh Thottingal
parent
20eea5de9f
commit
25775dd147
@@ -273,13 +273,14 @@
|
||||
// Not using jQuery as this is performance hotspot
|
||||
li = document.createElement( 'li' );
|
||||
li.title = name;
|
||||
li.lang = code;
|
||||
li.dir = $.uls.data.getDir( code );
|
||||
li.setAttribute( 'data-code', code );
|
||||
|
||||
a = document.createElement( 'a' );
|
||||
a.appendChild( document.createTextNode( autonym ) );
|
||||
a.className = 'autonym';
|
||||
a.lang = code;
|
||||
a.dir = $.uls.data.getDir( code );
|
||||
|
||||
|
||||
li.appendChild( a );
|
||||
if ( this.options.languageDecorator ) {
|
||||
|
||||
Reference in New Issue
Block a user