mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-2174] Menus background color is not properly displayed in black themes * Removed global mat-menu-panel class style overriding * * Refactored styles * * Changed opacity property to rgba so that injected coponents will not be affected * Removed fixed menu width
17 lines
841 B
HTML
17 lines
841 B
HTML
<div class="adf-sidebar-action-menu">
|
|
<button *ngIf="isExpanded()" mat-raised-button class="adf-sidebar-action-menu-button" data-automation-id="create-button" [matMenuTriggerFor]="adfSidebarMenu">
|
|
<span *ngIf="title" class="adf-sidebar-action-menu-text">{{ title }}</span>
|
|
<ng-content select="[sidebar-menu-title-icon]"></ng-content>
|
|
</button>
|
|
|
|
<div *ngIf="!isExpanded()" class="adf-sidebar-action-menu-icon" [matMenuTriggerFor]="adfSidebarMenu">
|
|
<ng-content select="[sidebar-menu-expand-icon]"></ng-content>
|
|
</div>
|
|
|
|
<mat-menu #adfSidebarMenu="matMenu" class="adf-sidebar-action-menu-panel" [overlapTrigger]="false" yPosition="below">
|
|
<div class="adf-sidebar-action-menu-options">
|
|
<ng-content select="[sidebar-menu-options]"></ng-content>
|
|
</div>
|
|
</mat-menu>
|
|
</div>
|