8172 update the right drawer action menu to open with command o (#8375)

Closes #8172 

- Added a shortcut property to the button component
- Displays the actions inside a dropdown
- The dropdown is toggled either by clicking on the button or with the
`command + O` shortcut



https://github.com/user-attachments/assets/4c4c88fa-85dc-404e-bb42-f2b0d57c8960
This commit is contained in:
Raphaël Bosi
2024-11-08 17:08:09 +01:00
committed by GitHub
parent 0bf2cb69da
commit e8bf81de5b
11 changed files with 177 additions and 84 deletions

View File

@ -0,0 +1,9 @@
import { getRightDrawerActionMenuDropdownIdFromActionMenuId } from '../getRightDrawerActionMenuDropdownIdFromActionMenuId';
describe('getRightDrawerActionMenuDropdownIdFromActionMenuId', () => {
it('should return the right drawer action menu dropdown id', () => {
expect(
getRightDrawerActionMenuDropdownIdFromActionMenuId('action-menu-id'),
).toBe('right-drawer-action-menu-dropdown-action-menu-id');
});
});

View File

@ -0,0 +1,5 @@
export const getRightDrawerActionMenuDropdownIdFromActionMenuId = (
actionMenuId: string,
) => {
return `right-drawer-action-menu-dropdown-${actionMenuId}`;
};