NavBar: Add subtle transition and fix changing width when selecting tab #426

Manually merged
hloth merged 1 commit from harj/open-grind:main into main 2026-10-17 13:42:17 +02:00
Contributor

Add pseudo-element to prevent element width changes when menu item is selected. Also adds subtle color transition with css.

Add pseudo-element to prevent element width changes when menu item is selected. Also adds subtle color transition with css.
Update NavBar.svelte
Some checks failed
check / check (pull_request) Has been cancelled
credits / credits (pull_request) Has been cancelled
876449b11e
Owner

Hi, please follow https://git.opengrind.org/open-grind/open-grind/src/branch/main/CONTRIBUTING.md and sign your commits, then force-push. Thank you!

Hi, please follow https://git.opengrind.org/open-grind/open-grind/src/branch/main/CONTRIBUTING.md and sign your commits, then force-push. Thank you!
harj force-pushed main from 876449b11e
Some checks failed
check / check (pull_request) Has been cancelled
credits / credits (pull_request) Has been cancelled
to e1e9816189
Some checks failed
check / check (pull_request) Has been cancelled
credits / credits (pull_request) Has been cancelled
2026-10-05 16:47:19 +02:00
Compare
Merge branch 'main' into main
Some checks failed
check / check (pull_request) Has been cancelled
credits / credits (pull_request) Has been cancelled
6d19d6eab4
harj requested review from Owners 2026-10-07 10:26:18 +02:00
Owner
  • 6d19d6ea is unsigned. Rebase onto main instead of merging it in, squash into one signed commit and force-push
  • Add an e2e to navbar-layout.spec.ts asserting tab widths don't change when selecting a tab (main shifts them by 1.23px)

Thank you

- 6d19d6ea is unsigned. Rebase onto main instead of merging it in, squash into one signed commit and force-push - Add an e2e to navbar-layout.spec.ts asserting tab widths don't change when selecting a tab (main shifts them by 1.23px) Thank you
harj force-pushed main from 6d19d6eab4
Some checks failed
check / check (pull_request) Has been cancelled
credits / credits (pull_request) Has been cancelled
to 25fc5319b4
Some checks failed
check / check (pull_request) Has been cancelled
credits / credits (pull_request) Has been cancelled
ci-orchestrator / provision running on cpx42 in fsn1
audit / audit (pull_request) Successful in 12s
2026-10-16 15:25:14 +02:00
Compare
harj force-pushed main from 25fc5319b4
Some checks failed
check / check (pull_request) Has been cancelled
credits / credits (pull_request) Has been cancelled
ci-orchestrator / provision running on cpx42 in fsn1
audit / audit (pull_request) Successful in 12s
to e841e5c7bf
Some checks failed
check / check (pull_request) Has been cancelled
credits / credits (pull_request) Has been cancelled
2026-10-16 15:31:11 +02:00
Compare
hloth requested changes 2026-10-16 16:31:45 +02:00
Dismissed
@ -47,0 +50,4 @@
await page.evaluate(() => document.fonts.ready);
const navbar = page.getByRole("navigation");
const tabs = navbar.locator(".links > a");
Owner

CONTRIBUTING says to query tab links by role, not shape

CONTRIBUTING says to query tab links by role, not shape
Add subtle transition and fix changing width when selecting tab
Some checks failed
check / check (pull_request) Has been cancelled
credits / credits (pull_request) Has been cancelled
6599ee0f09
The active tab's label switches to medium weight, which widened it and
nudged every tab after it. Each label now carries a hidden medium-weight
copy, so its width is already the bold width before it's selected.

Fade navbar tab colors over the standard transition instead of switching
them instantly, and assert that tab widths remain unchanged in e2e tests.
harj force-pushed main from 6599ee0f09
Some checks failed
check / check (pull_request) Has been cancelled
credits / credits (pull_request) Has been cancelled
to ab17fd9724
All checks were successful
ci-orchestrator / provision running on cpx42 in fsn1
credits / credits (pull_request) Successful in 1m4s
check / check (pull_request) Successful in 42m31s
2026-10-16 17:39:10 +02:00
Compare
hloth approved these changes 2026-10-17 12:49:53 +02:00
hloth manually merged commit 0dd63b0524 into main 2026-10-17 13:42:17 +02:00
Sign in to join this conversation.
No description provided.