Skip to content

Commit 3605c0b

Browse files
committed
chore(frontend): make chevron icons transition consistently
Signed-off-by: Jakob Steiner <jakob.steiner@glasskube.eu>
1 parent 330cf98 commit 3605c0b

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

frontend/ui/src/app/artifacts/artifact-licenses/edit-artifact-license.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@
6868
: getSelectedItemsCount(artifactCtrl) + ' tags selected'
6969
}}
7070
</span>
71-
<fa-icon [icon]="faChevronDown"></fa-icon>
71+
<fa-icon
72+
class="transition duration-150 ease-in-out"
73+
[class.rotate-x-180]="openedArtifactIdx() === i"
74+
[icon]="faChevronDown" />
7275
</button>
7376

7477
<ng-template

frontend/ui/src/app/components/nav-bar/nav-bar.component.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ <h1 class="font-display self-center text-xl font-semibold sm:text-2xl whitespace
7777
}
7878
</span>
7979
<fa-icon
80-
class="ml-2 text-gray-900 dark:text-gray-300"
81-
[icon]="organizationsOpened ? faChevronUp : faChevronDown"></fa-icon>
80+
class="ml-2 text-gray-900 dark:text-gray-300 transition duration-150 ease-in-out"
81+
[class.rotate-x-180]="organizationsOpened"
82+
[icon]="faChevronDown" />
8283
</button>
8384
</div>
8485
<ng-template

frontend/ui/src/app/components/side-bar/side-bar.component.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
<span class="flex-1 ms-3 text-left rtl:text-right whitespace-nowrap">Agents</span>
5555
<fa-icon
5656
[icon]="faChevronDown"
57-
[class.rotate-180]="agentsSubMenuOpen()"
58-
class="transition duration-150"></fa-icon>
57+
[class.rotate-x-180]="agentsSubMenuOpen()"
58+
class="transition duration-150 ease-in-out"></fa-icon>
5959
</button>
6060
@if (agentsSubMenuOpen()) {
6161
<ul class="space-y-1">
@@ -106,8 +106,8 @@
106106
<span class="flex-1 ms-3 text-left rtl:text-right whitespace-nowrap">Registry</span>
107107
<fa-icon
108108
[icon]="faChevronDown"
109-
[class.rotate-180]="registrySubMenuOpen()"
110-
class="transition duration-150"></fa-icon>
109+
[class.rotate-x-180]="registrySubMenuOpen()"
110+
class="transition duration-150 ease-in-out"></fa-icon>
111111
</button>
112112
@if (registrySubMenuOpen()) {
113113
<ul class="space-y-1">
@@ -146,8 +146,8 @@
146146
<span class="flex-1 ms-3 text-left rtl:text-right whitespace-nowrap">Licenses</span>
147147
<fa-icon
148148
[icon]="faChevronDown"
149-
[class.rotate-180]="licenseSubMenuOpen()"
150-
class="transition duration-150"></fa-icon>
149+
[class.rotate-x-180]="licenseSubMenuOpen()"
150+
class="transition duration-150 ease-in-out"></fa-icon>
151151
</button>
152152
@if (licenseSubMenuOpen()) {
153153
<ul class="space-y-1">

frontend/ui/src/app/licenses/edit-license.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@
5959
: subjectItemsSelected + ' versions selected'
6060
}}
6161
</span>
62-
<fa-icon [icon]="faChevronDown"></fa-icon>
62+
<fa-icon
63+
class="transition duration-150 ease-in-out"
64+
[class.rotate-x-180]="dropdownOpen()"
65+
[icon]="faChevronDown" />
6366
</button>
6467

6568
<ng-template

0 commit comments

Comments
 (0)