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

Switch to aria-current="page" for the TOC items #2499

Merged
merged 2 commits into from
Sep 27, 2024
Merged

Switch to aria-current="page" for the TOC items #2499

merged 2 commits into from
Sep 27, 2024

Conversation

SamyPesse
Copy link
Member

No description provided.

Copy link

changeset-bot bot commented Sep 27, 2024

🦋 Changeset detected

Latest commit: 4cba020

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

argos-ci bot commented Sep 27, 2024

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Changes approved 14 changed Sep 27, 2024, 10:52 AM

@SamyPesse SamyPesse merged commit b075f0f into main Sep 27, 2024
9 checks passed
@SamyPesse SamyPesse deleted the aria-toc branch September 27, 2024 10:54
@@ -96,7 +96,7 @@ export function ToggleableLinkItem(props: {
<Link
ref={linkRef}
href={href}
aria-selected={isActive}
{...(isActive ? { 'aria-current': 'page' } : {})}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aria-current={isActive ? 'page' : undefined} is cleaner.

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.

2 participants