Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Moved the "All" special category at the top of the dropdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Jan 29, 2020
1 parent 58f7cac commit 9bf4751
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/specialcharacters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion tests/specialcharacters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 9bf4751

Please sign in to comment.