-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
62 additions
and
20 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
projects/demo/src/app/components/custom-menu/custom-menu.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
5 changes: 5 additions & 0 deletions
5
projects/demo/src/app/components/custom-menu/custom-menu.component.scss
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,3 +1,8 @@ | ||
:host { | ||
display: flex; | ||
} | ||
|
||
.NgxEditor__MenuItem { | ||
all: unset; | ||
appearance: none; | ||
} |
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
6 changes: 4 additions & 2 deletions
6
projects/ngx-editor/src/lib/modules/menu/color-picker/color-picker.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
18 changes: 13 additions & 5 deletions
18
projects/ngx-editor/src/lib/modules/menu/dropdown/dropdown.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,22 +1,30 @@ | ||
<div | ||
<button | ||
type="button" | ||
class="NgxEditor__Dropdown--Text" | ||
[class.NgxEditor__Dropdown--Selected]="isSelected" | ||
[class.NgxEditor--Disabled]="isDropdownDisabled" | ||
(mousedown)="toggleDropdown($event)" | ||
[ariaLabel]="getName(activeItem || group) | async" | ||
aria-haspopup="listbox" | ||
[ariaExpanded]="isDropdownOpen" | ||
> | ||
{{ getName(activeItem || group) | async }} | ||
</div> | ||
</button> | ||
|
||
<div class="NgxEditor__Dropdown--DropdownMenu" *ngIf="isDropdownOpen"> | ||
<div | ||
<div class="NgxEditor__Dropdown--DropdownMenu" *ngIf="isDropdownOpen" role="listbox"> | ||
<button | ||
type="button" | ||
class="NgxEditor__Dropdown--Item" | ||
*ngFor="let item of items; trackBy: trackByIndex" | ||
(mousedown)="onClick($event, item)" | ||
[ngClass]="{ | ||
'NgxEditor__Dropdown--Active': item === activeItem, | ||
'NgxEditor--Disabled': disabledItems.includes(item) | ||
}" | ||
[ariaLabel]="getName(item) | async" | ||
role="option" | ||
[attr.aria-selected]="item === activeItem" | ||
> | ||
{{ getName(item) | async }} | ||
</div> | ||
</button> | ||
</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
8 changes: 6 additions & 2 deletions
8
projects/ngx-editor/src/lib/modules/menu/image/image.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
5 changes: 3 additions & 2 deletions
5
projects/ngx-editor/src/lib/modules/menu/insert-command/insert-command.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,7 +1,8 @@ | ||
<div | ||
<button | ||
class="NgxEditor__MenuItem--IconContainer" | ||
[class.NgxEditor--Disabled]="disabled" | ||
[innerHTML]="html | sanitizeHtml" | ||
(mousedown)="insert($event)" | ||
[title]="getTitle(name) | async" | ||
></div> | ||
[ariaLabel]="getTitle(name) | async" | ||
></button> |
8 changes: 6 additions & 2 deletions
8
projects/ngx-editor/src/lib/modules/menu/link/link.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
6 changes: 4 additions & 2 deletions
6
projects/ngx-editor/src/lib/modules/menu/toggle-command/toggle-command.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,8 +1,10 @@ | ||
<div | ||
<button | ||
type="button" | ||
class="NgxEditor__MenuItem--IconContainer" | ||
[class.NgxEditor__MenuItem--Active]="isActive" | ||
[class.NgxEditor--Disabled]="disabled" | ||
[innerHTML]="html | sanitizeHtml" | ||
(mousedown)="toggle($event)" | ||
[title]="getTitle(name) | async" | ||
></div> | ||
[ariaLabel]="getTitle(name) | async" | ||
></button> |