-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Shellbar Examples and Size added (#3513)
* fix: Add shellbar size, fix examples * add docs style changes for shellbar nav * remove redundant test * fix lint
- Loading branch information
1 parent
12e88a7
commit ea576f2
Showing
15 changed files
with
108 additions
and
82 deletions.
There are no files selected for viewing
76 changes: 44 additions & 32 deletions
76
...src/app/core/component-docs/shellbar/examples/shellbar-collapsible-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,32 +1,44 @@ | ||
<fd-shellbar> | ||
<fd-shellbar-logo> | ||
<a href="#" class="fd-shellbar__logo fd-shellbar__logo--image-replaced" aria-label="SAP"></a> | ||
</fd-shellbar-logo> | ||
<fd-product-menu [control]="productMenuControl" [closePopoverOnSelect]="true" [items]="productMenuItems"> | ||
</fd-product-menu> | ||
<fd-shellbar-subtitle> | ||
Subtitle | ||
</fd-shellbar-subtitle> | ||
<fd-shellbar-actions [user]="user" [userMenu]="userMenu"> | ||
<fd-shellbar-action | ||
*ngFor="let action of actions" | ||
[glyph]="action.glyph" | ||
[callback]="action.callback" | ||
[label]="action.label" | ||
[notificationCount]="action.notificationCount" | ||
[notificationLabel]="action.notificationLabel" | ||
> | ||
</fd-shellbar-action> | ||
<fd-product-switch> | ||
<fd-product-switch-body [products]="productSwitcher"> </fd-product-switch-body> | ||
</fd-product-switch> | ||
<fd-combobox | ||
[(ngModel)]="searchTerm" | ||
[glyph]="'search'" | ||
[dropdownValues]="searchTerms" | ||
[placeholder]="'Type some text...'" | ||
[maxHeight]="'250px'" | ||
> | ||
</fd-combobox> | ||
</fd-shellbar-actions> | ||
</fd-shellbar> | ||
<fd-segmented-button> | ||
<button fd-button (click)="changeSize('s')" [class]="isSelected('s')">S</button> | ||
<button fd-button (click)="changeSize('m')" [class]="isSelected('m')">M</button> | ||
<button fd-button (click)="changeSize('l')" [class]="isSelected('l')">L</button> | ||
<button fd-button (click)="changeSize('xl')" [class]="isSelected('xl')">XL</button> | ||
</fd-segmented-button> | ||
|
||
<div style="margin-top: 60px" [style.maxWidth]="sizesWidth[currentSize] + 'px'"> | ||
<fd-shellbar [size]="currentSize"> | ||
<fd-shellbar-logo> | ||
<a href="#" class="fd-shellbar__logo fd-shellbar__logo--image-replaced" aria-label="SAP"></a> | ||
</fd-shellbar-logo> | ||
<fd-product-menu [control]="productMenuControl" [closePopoverOnSelect]="true" [items]="productMenuItems"> | ||
</fd-product-menu> | ||
<fd-shellbar-subtitle> | ||
Subtitle | ||
</fd-shellbar-subtitle> | ||
<fd-shellbar-actions [user]="user" [userMenu]="userMenu"> | ||
<fd-shellbar-action | ||
*ngFor="let action of actions" | ||
[glyph]="action.glyph" | ||
[callback]="action.callback" | ||
[label]="action.label" | ||
[notificationCount]="action.notificationCount" | ||
[notificationLabel]="action.notificationLabel" | ||
> | ||
</fd-shellbar-action> | ||
<fd-product-switch> | ||
<fd-product-switch-body | ||
[products]="productSwitcher" | ||
[forceListMode]="currentSize === 's'"> | ||
</fd-product-switch-body> | ||
</fd-product-switch> | ||
<fd-combobox | ||
[(ngModel)]="searchTerm" | ||
[glyph]="'search'" | ||
[dropdownValues]="searchTerms" | ||
[placeholder]="'Type some text...'" | ||
[maxHeight]="'250px'" | ||
> | ||
</fd-combobox> | ||
</fd-shellbar-actions> | ||
</fd-shellbar> | ||
</div> |
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
7 changes: 4 additions & 3 deletions
7
...mponent-docs/shellbar/examples/shellbar-side-nav/shellbar-side-nav-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
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
5 changes: 3 additions & 2 deletions
5
...component-docs/shellbar/examples/shellbar-side-nav/shellbar-side-nav-example.component.ts
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
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
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