Skip to content

Commit

Permalink
Update active item appearance in Library (#51848)
Browse files Browse the repository at this point in the history
* Color

* Use aria-current
  • Loading branch information
jameskoster authored Jun 23, 2023
1 parent 792014c commit 8f0d4d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function CategoryItem( {
{ ...linkInfo }
icon={ icon }
suffix={ <span>{ count }</span> }
className={ isActive ? 'is-active-category' : undefined }
aria-current={ isActive ? 'true' : undefined }
>
{ label }
</SidebarNavigationItem>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.edit-site-sidebar-navigation-screen-library__group {
margin-bottom: $grid-unit-30;
}

.edit-site-sidebar-navigation-item.is-active-category {
background: $gray-800;
}

1 comment on commit 8f0d4d9

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in 8f0d4d9.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5356990193
📝 Reported issues:

Please sign in to comment.