Skip to content

fix(navigation-coloring-issue): Colouring of navigation tabs fix - #828

Open
pajka2T wants to merge 1 commit into
rucio:mainfrom
pajka2T:navigation-colouring-fix
Open

fix(navigation-coloring-issue): Colouring of navigation tabs fix#828
pajka2T wants to merge 1 commit into
rucio:mainfrom
pajka2T:navigation-colouring-fix

Conversation

@pajka2T

@pajka2T pajka2T commented Sep 2, 2026

Copy link
Copy Markdown

Closes #826

Work done

Subscriptions and Approve Rules buttons colour after clicking on them.

The problem with incorrect pathname is fixed by comparing url stored in menuItems dictionary not only with path got from usePathname() Next.js function, but also with parameters of current url gained from useSearchParams() function. Values returned by these functions are concatenated and compared to stored value.
It also works for children in dropdown menus - i.e. Approve Rules colours not only itself, but also its parent, the Rules tab.

Fix of the test checking navigation's work - included useSearchParams() mock.

@pajka2T
pajka2T force-pushed the navigation-colouring-fix branch from 4034e67 to 54a0976 Compare September 2, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some elements of navigation do not colour after clicking on them

1 participant