-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(action-popover): align component with design system
aligns component with the sage design system, to ensure consumers can use the component with expected styling and functionality. Nine different styling variations have been added which change the alignment and padding of each child to ensure designs are correct. Also, support for submenu's opening on the right has been included with the addition of the `submenuPosition` prop. When set to "right" the menu-item chevron will appear on the right of the action popover menu, and any submenu's will open from the right-hand side. Also, when the `submenuPosition` prop is "left", either by default, or set by the consumer and a content is re-sized the `submenuPosition` will be temporarily set to "right" if the window is deemed to be too small. Finally, icon's are now supported in submenu's and can be included by passing the `icon` prop to the submenu's menu item. fix #5801
- Loading branch information
1 parent
40ac949
commit 780a390
Showing
11 changed files
with
2,324 additions
and
137 deletions.
There are no files selected for viewing
650 changes: 640 additions & 10 deletions
650
cypress/components/action-popover/action-popover.cy.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.