Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update Menu styling to match Fiori3 requirements (#2572)
* Create initial Menu elements composition and interactivity support * feat(core) Create mobile and desktop version for menu * feat(core) Change menu-item-component to directive like usage * feat(core) Partial documentation update * feat(core) Try to improve performance * feat(core) fix styling * feat(core) Create Menu documentation * Update menu-docs.component.html * feat(core) Add documentation fixes * feat(core) fix indirect import * feat(core) Add submenu indicator class * feat(core) Add RTL support to examples * feat(core) Rework mobile menu composition * feat(core) focusable menu items * feat(core) Move menu logic to Service | Create Submenu wrapper * fix(core) Add keyboard support * feat(core) working on mobile mode * feat(core) problems with popover * feat(core) Add external trigger upport | Needs fixes on programmatic selection side * feat(core) Add device specific behaviors based on menu mode * feat(core) Add standalone menu option * feat(core) Add disabled state for menu items * feat(core) Rename menu-link to menu-iteractive * feat(core) Revert themes and MenuKeyboard changes * feat(core) Move triggers to Menu * feat(core) remove standalone mode * feat(core) Rename subMenu to submenu | Update docs examples and description * feat(core) Improve A11y * feat(core) resolve import paths * feat(core) Move submenu to MenuItem file * feat(core) Refactor SplitButton to Fiori3 * feat(core) Add MenuComponent tests * feat(core) Add Menu trigger tests * feat(core) add tests to directives, menu item and menu service * feat(core) Finish writing tests * feat(core) Address review comments * feat(core) cleanup in shellbar | fix menu placement problem * feat(core) Add menu story * feat(core) Remove fdMenu and fdSubmenu aliases exports and usage * feat(core) address PR comments Co-authored-by: Vanessa-Cusmich <54723167+Vanessa-Cusmich@users.noreply.github.com>
- Loading branch information
1 parent
bcf2e44
commit 4d9b64b
Showing
123 changed files
with
4,129 additions
and
2,004 deletions.
There are no files selected for viewing
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
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
36 changes: 11 additions & 25 deletions
36
...ocs/src/app/core/component-docs/dropdown/examples/dropdown-default-example.component.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,21 @@ | ||
<fd-popover style="margin-right: 12px;"> | ||
<fd-dropdown-control>Cozy Dropdown</fd-dropdown-control> | ||
<fd-popover-body *ngIf="(menu1 && menu1.length) || (menu2 && menu2.length)"> | ||
<fd-menu> | ||
<ul fd-menu-list> | ||
<li *ngFor="let option of menu1"> | ||
<a fd-menu-item [attr.href]="option.url">{{ option.text }}</a> | ||
</li> | ||
</ul> | ||
<fd-menu-group> | ||
<h1 fd-menu-title> | ||
Group header | ||
</h1> | ||
<ul fd-menu-list> | ||
<li *ngFor="let option of menu2"> | ||
<a fd-menu-item [attr.href]="option.url">{{ option.text }}</a> | ||
</li> | ||
</ul> | ||
</fd-menu-group> | ||
</fd-menu> | ||
<fd-popover-body *ngIf="menu1 && menu1.length"> | ||
<ul fd-list> | ||
<li fd-list-item *ngFor="let option of menu1"> | ||
<a [attr.href]="option.url" fd-list-title>{{option.text}}</a> | ||
</li> | ||
</ul> | ||
</fd-popover-body> | ||
</fd-popover> | ||
|
||
<fd-popover> | ||
<fd-dropdown-control [compact]="true">Compact Dropdown</fd-dropdown-control> | ||
<fd-popover-body *ngIf="menu1 && menu1.length"> | ||
<fd-menu> | ||
<ul fd-menu-list> | ||
<li *ngFor="let option of menu1"> | ||
<a fd-menu-item [attr.href]="option.url">{{ option.text }}</a> | ||
</li> | ||
</ul> | ||
</fd-menu> | ||
<ul fd-list [compact]="true"> | ||
<li fd-list-item *ngFor="let option of menu1"> | ||
<a [attr.href]="option.url" fd-list-title>{{option.text}}</a> | ||
</li> | ||
</ul> | ||
</fd-popover-body> | ||
</fd-popover> |
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
16 changes: 6 additions & 10 deletions
16
.../docs/src/app/core/component-docs/dropdown/examples/dropdown-icons-example.component.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
<fd-popover> | ||
<fd-dropdown-control [glyph]="'filter'">Dropdown</fd-dropdown-control> | ||
<fd-popover-body *ngIf="values && values.length"> | ||
<fd-menu fd-menu-addon> | ||
<ul fd-menu-list> | ||
<li *ngFor="let option of values"> | ||
<a href="" fd-menu-item> | ||
<fd-icon fd-menu-item-addon size="m" [glyph]="option.icon" class="fd-template-icon"></fd-icon> | ||
{{ option.name }} | ||
</a> | ||
</li> | ||
</ul> | ||
</fd-menu> | ||
<ul fd-list> | ||
<li fd-list-item *ngFor="let option of values"> | ||
<fd-icon fd-list-icon [glyph]="option.icon"></fd-icon> | ||
<a [attr.href]="option.url" fd-list-title>{{option.name}}</a> | ||
</li> | ||
</ul> | ||
</fd-popover-body> | ||
</fd-popover> |
18 changes: 5 additions & 13 deletions
18
...app/core/component-docs/dropdown/examples/dropdown-infinite-scroll-example.component.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
<fd-popover> | ||
<fd-dropdown-control>Dropdown</fd-dropdown-control> | ||
<fd-popover-body> | ||
<fd-menu> | ||
<ul | ||
fd-menu-list | ||
fdInfiniteScroll | ||
(onScrollAction)="loadMoreElements()" | ||
[scrollPercent]="scrollPercent" | ||
style="overflow-y: scroll; display: block; max-height: 120px;" | ||
> | ||
<li fd-menu-item *ngFor="let element of displayedList"> | ||
{{ element.label }} | ||
</li> | ||
</ul> | ||
</fd-menu> | ||
<ul fd-list fdInfiniteScroll (onScrollAction)="loadMoreElements()" [scrollPercent]="scrollPercent" style="overflow-y: scroll; display: block; max-height: 120px;"> | ||
<li fd-list-item *ngFor="let option of displayedList"> | ||
<a [attr.href]="option.url" fd-list-title>{{option.label}}</a> | ||
</li> | ||
</ul> | ||
</fd-popover-body> | ||
</fd-popover> |
12 changes: 5 additions & 7 deletions
12
.../docs/src/app/core/component-docs/dropdown/examples/dropdown-state-example.component.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
<fd-popover [disabled]="true"> | ||
<fd-dropdown-control [disabled]="true">Dropdown</fd-dropdown-control> | ||
<fd-popover-body *ngIf="menu1 && menu1.length"> | ||
<fd-menu> | ||
<ul fd-menu-list> | ||
<li *ngFor="let option of menu1"> | ||
<a fd-menu-item [attr.href]="option.url">{{ option.text }}</a> | ||
</li> | ||
</ul> | ||
</fd-menu> | ||
<ul fd-list> | ||
<li fd-list-item *ngFor="let option of menu1"> | ||
<a [attr.href]="option.url" fd-list-title>{{option.text}}</a> | ||
</li> | ||
</ul> | ||
</fd-popover-body> | ||
</fd-popover> |
Oops, something went wrong.