Skip to content

Commit 5b530fd

Browse files
feat(demo): add cdkFocusInitial
1 parent 4802a96 commit 5b530fd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app/shared/components/support/support.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102

103103
<div class="form">
104104
<mat-form-field style="width: 100%; margin-bottom: -10px;">
105-
<input matInput placeholder="Message">
105+
<input matInput placeholder="Message" cdkFocusInitial>
106106
</mat-form-field>
107107
</div>
108108
</div>

src/app/shared/components/theme-picker/theme-picker.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
(click)="theme=item.className"
77
[class.hover]="hovering!==null"
88
(focus)="hovering=item.className"
9+
[attr.cdkFocusInitial]="theme===item.className || null"
910
(mouseenter)="hovering=item.className"
1011
(mouseleave)="hovering=null">
1112
<mat-icon *ngIf="theme===item.className">check_circle</mat-icon>

0 commit comments

Comments
 (0)