Преглед на файлове

Other: Moved the "All" special category at the top of the dropdown. Closes [ckeditor/ckeditor5#6157](https://github.com/ckeditor/ckeditor5/issues/6157).

Marek Lewandowski преди 5 години
родител
ревизия
7e6ab4f9da

+ 1 - 1
packages/ckeditor5-special-characters/src/specialcharacters.js

@@ -80,7 +80,7 @@ export default class SpecialCharacters extends Plugin {
 			const specialCharsGroups = [ ...this.getGroups() ];
 
 			// Add a special group that shows all available special characters.
-			specialCharsGroups.push( ALL_SPECIAL_CHARACTERS_GROUP );
+			specialCharsGroups.unshift( ALL_SPECIAL_CHARACTERS_GROUP );
 
 			const navigationView = new SpecialCharactersNavigationView( locale, specialCharsGroups );
 			const gridView = new CharacterGridView( locale );

+ 1 - 1
packages/ckeditor5-special-characters/tests/specialcharacters.js

@@ -79,7 +79,7 @@ describe( 'SpecialCharacters', () => {
 
 				// "Mathematical" and "Arrows" are provided by other plugins. "All" is being added by SpecialCharacters itself.
 				expect( listView.items.length ).to.equal( 3 );
-				expect( listView.items.last.children.first.label ).to.equal( 'All' );
+				expect( listView.items.first.children.first.label ).to.equal( 'All' );
 			} );
 
 			it( 'has a grid view', () => {