Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#25276 Code refactor for the new menu
- Loading branch information
1 parent
d21b785
commit 9feffb5
Showing
4 changed files
with
31 additions
and
34 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
34 changes: 15 additions & 19 deletions
34
core-web/libs/ui/src/lib/dot-tab-buttons/dot-tab-buttons.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,30 +1,26 @@ | ||
<div class="dot-tab-buttons"> | ||
<div style="position: relative"> | ||
<button | ||
class="dot-tab-button" | ||
[ngClass]="{ 'dot-tab-button-hover': mode === pageMode.EDIT }" | ||
[value]="pageMode.EDIT" | ||
(click)="onChangeState($event)" | ||
> | ||
Edit | ||
</button> | ||
<div class="dot-tab-buttons-select" *ngIf="mode === pageMode.EDIT"></div> | ||
</div> | ||
<div *ngFor="let item of options" style="position: relative"> | ||
<div class="dot-tab-container" (click)="onChangeState($event)"> | ||
<button | ||
class="dot-tab-button" | ||
[ngClass]="{ | ||
'dot-tab-button-active': mode === item.value, | ||
'dot-tab-button__right': item.value === pageMode.PREVIEW | ||
}" | ||
[value]="item.value" | ||
[disabled]="item.disabled" | ||
> | ||
{{ item.label }} | ||
</button> | ||
|
||
<div style="position: relative"> | ||
<div | ||
class="dot-button-dropdown" | ||
[ngClass]="{ 'dot-tab-button-hover': mode === pageMode.PREVIEW }" | ||
(click)="onChangeState($event)" | ||
> | ||
<button class="dot-tab-button__right" [value]="pageMode.PREVIEW">Preview</button> | ||
<button | ||
class="dot-tab-dropdown" | ||
*ngIf="item.value === pageMode.PREVIEW" | ||
[ngClass]="{ 'dot-tab-button-hover-dropdown': mode === pageMode.PREVIEW }" | ||
> | ||
<i class="dot-tabs-dropdown-icon" [class]="icon"></i> | ||
</button> | ||
</div> | ||
<div class="dot-tab-buttons-select" *ngIf="mode === pageMode.PREVIEW"></div> | ||
<div class="dot-tab-buttons-select" *ngIf="mode === item.value"></div> | ||
</div> | ||
</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
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