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:
@ -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');
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,5 @@
|
||||
export const getRightDrawerActionMenuDropdownIdFromActionMenuId = (
|
||||
actionMenuId: string,
|
||||
) => {
|
||||
return `right-drawer-action-menu-dropdown-${actionMenuId}`;
|
||||
};
|
||||
Reference in New Issue
Block a user