Burchakli 2 Materiallar - Sidenav va asboblar paneli tugmalari avtomatik ravishda kattalashtiriladi

Men material2 kutubxonasidan foydalanib, burchakli 2 ilovasini ishlab chiqmoqdaman, lekin Toolbar va Sidenavda tugmalar (md-tugma) bilan ba'zi bir UI muammolari mavjud.

Sidenav ochilganda va foydalanuvchi tugmalarni biriga kursorni ko'chirsa, birinchi tugma doimo avtomatik ravishda ta'kidlanadi.

Bundan tashqari, sidenav yopilganda, asboblar panelidagi menyu tugmasi foydalanuvchi boshqa joyga kelsa, avtomatik ravishda ta'kidlanadi.

Mana mening tartibim:


 <!-- mode="over/side/push" --> <!-- (open)="" -->
    <button md-button class="sidenav-link" [routerLink]="['/home']" (click)="sidenav.close()">HOME</button>
    <button md-button class="sidenav-link" [routerLink]="['/about']" (click)="sidenav.close()">ABOUT</button>



    <button md-button class="toolbar-menu-button" (click)="sidenav.toggle()">menu</button>
    
    <button md-button class="toolbar-link" [routerLink]="['/home']" [routerLinkActive]="['link-active']">HOME</button>
    <button md-button class="toolbar-link" [routerLink]="['/about']" [routerLinkActive]="['link-active']">ABOUT</button>
    


<div class="page-content">
    
</div>

And here is a pluker which shows the issue -> https://plnkr.co/edit/ve5Ez0WSinNyowxI46LO?p=preview

2
Xristian @Androidian Buni tushunganmisiz? Xuddi shu qayg'ularga duch kelaman.
qo'shib qo'ydi muallif Clark, manba

6 javoblar

Tanlangan elementda cdk-focus-region-start xususiyati foydalanishingiz mumkin.

Misol uchun, juda yomon, eng kam misol:

Home

Va to'liq blown link:

Home

Yuqori o'rniga menyuni ochganda, u diqqatni joriy tanlangan elementga o'rnatadi.

Information is scant but found this on github

Tahrirlangan:

cdk-focus-start deb atalgan cdk-focus-region-start dan foydalaning. Yuqoridagi kod yangilandi.

0
qo'shib qo'ydi

Tanlangan elementda cdk-focus-region-start xususiyati foydalanishingiz mumkin.

Misol uchun, juda yomon, eng kam misol:

Home

Va to'liq blown link:

Home

Yuqori o'rniga menyuni ochganda, u diqqatni joriy tanlangan elementga o'rnatadi.

Information is scant but found this on github

Tahrirlangan:

cdk-focus-start deb atalgan cdk-focus-region-start dan foydalaning. Yuqoridagi kod yangilandi.

0
qo'shib qo'ydi

Tanlangan elementda cdk-focus-region-start xususiyati foydalanishingiz mumkin.

Misol uchun, juda yomon, eng kam misol:

Home

Va to'liq blown link:

Home

Yuqori o'rniga menyuni ochganda, u diqqatni joriy tanlangan elementga o'rnatadi.

Information is scant but found this on github

Tahrirlangan:

cdk-focus-start deb atalgan cdk-focus-region-start dan foydalaning. Yuqoridagi kod yangilandi.

0
qo'shib qo'ydi

i tried another solution and it worked.
as far as i understand routerLinkActive allows to set arbitrary class for active anchor tag so i just added:


  
    
        ...
    
  

Umid qilamizki, bu yordam beradi

0
qo'shib qo'ydi

i tried another solution and it worked.
as far as i understand routerLinkActive allows to set arbitrary class for active anchor tag so i just added:


  
    
        ...
    
  

Umid qilamizki, bu yordam beradi

0
qo'shib qo'ydi

i tried another solution and it worked.
as far as i understand routerLinkActive allows to set arbitrary class for active anchor tag so i just added:


  
    
        ...
    
  

Umid qilamizki, bu yordam beradi

0
qo'shib qo'ydi
Angular Uzbekistan
Angular Uzbekistan
107 ishtirokchilar

Guruh Angular bo'yicha muloqot qilish uchun ochilgan Sizni qiziqtirsa: @nodejs_uz @react_uz @angular_uz @yiiframework_uz @js_uzb @typescript_uzb @vuejs_uz @ngTashkent @laravel_uz @uzdevgroup Ish o'rinlari @UzDev_jobs

ngTashkent
ngTashkent
77 ishtirokchilar

Правила просты: 1. Не хамить 2. Не хейтить 3. Реакт не нужен Ссылки: https://t.me/angular_ru - старший брат https://t.me/angular_uz - ангулар на узбекском @js_uzb @vuejs_uz @react_uz @nodejs_uz @yiiframework_uz @uzdevgroup @UzDev_Jobs @tasdev_talks