Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/components/AppMenuActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const emit = defineEmits<{

/**
* Number of cells in the actions row, matching the column count of the app
* grid. Actions that do not fit move into the trailing "More actions" cell.
* grid. Actions that do not fit move into the trailing "More" cell.
*/
const ACTIONS_PER_ROW = 4

Expand All @@ -42,7 +42,7 @@ const overflowEntry: INavigationEntry = {
href: '',
icon: '',
type: 'action',
name: t('core', 'More actions'),
name: t('core', 'More'),
unread: 0,
}

Expand Down
4 changes: 2 additions & 2 deletions core/src/tests/components/AppMenu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,15 @@ describe('core: AppMenu navigation actions', () => {
expect(document.activeElement).toBe(rowItems()[0])
})

it('moves the actions that do not fit into a "More actions" submenu', async () => {
it('moves the actions that do not fit into a "More" submenu', async () => {
initialState.loadState.mockImplementation(stateWith(fakeApps(), fakeActions(6)))
const wrapper = mount(AppMenu, { attachTo: document.body })
await openPopover(wrapper)

const items = rowItems()
// Three actions plus the trailing overflow item make up the single row.
expect(items).toHaveLength(4)
expect(items[3].textContent).toContain('More actions')
expect(items[3].textContent).toContain('More')
expect(items[3].getAttribute('aria-haspopup')).toBe('menu')
expect(items[3].getAttribute('aria-expanded')).toBe('false')
expect(document.querySelector('.app-menu-actions__submenu')).toBeNull()
Expand Down
Loading