Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(root): changed tab behaviour on component pages #626

Merged
merged 4 commits into from
Oct 6, 2023

Conversation

GCHQ-Developer-741
Copy link
Contributor

@GCHQ-Developer-741 GCHQ-Developer-741 commented Oct 4, 2023

Summary of the changes

Removed previous code that involved updating the tab content manually on component pages, so that they now function using Gatsby Links to preserve the url and Anchor Nav behaviour.

Added some additional code to focus the clicked tab when moving between the code, guidance and accessibility content, to preserve position on the page for keyboard users

Related issue

#563

Checklist

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

@GCHQ-Developer-741 GCHQ-Developer-741 force-pushed the update-tab-navigation-behaviour branch 10 times, most recently from f6ccf0d to a66d240 Compare October 4, 2023 15:24
changed tab behaviour to use gatsby links to preserve urls, whilst applying focus to new tab after
page load to preserve position on page
@GCHQ-Developer-741 GCHQ-Developer-741 force-pushed the update-tab-navigation-behaviour branch from adbb0be to 87f02fb Compare October 5, 2023 12:35
runs effect on page load to focus tab & set active class. also fixes applying active class to tab
when anchor link clicked
@GCHQ-Developer-741 GCHQ-Developer-741 force-pushed the update-tab-navigation-behaviour branch from 87f02fb to 9654c22 Compare October 5, 2023 12:42
ad9242 added 2 commits October 6, 2023 08:54
fixes focus when nav link clicked or tab in page header in component view
…esign-system into update-tab-navigation-behaviour
@GCHQ-Developer-741 GCHQ-Developer-741 merged commit b568117 into develop Oct 6, 2023
5 checks passed
@GCHQ-Developer-741 GCHQ-Developer-741 deleted the update-tab-navigation-behaviour branch October 6, 2023 09:58
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.

4 participants