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

Sidebar category icon not clickable due to using ::after #188

Closed
slorber opened this issue Nov 21, 2021 · 0 comments · Fixed by #190
Closed

Sidebar category icon not clickable due to using ::after #188

slorber opened this issue Nov 21, 2021 · 0 comments · Fixed by #190

Comments

@slorber
Copy link
Collaborator

slorber commented Nov 21, 2021

The sidebar category icon is using an ::after pseudo-element.

image

It worked fine until now, but for facebook/docusaurus#5830 I'd like to be able to add a click listener to this icon (otherwise this category couldn't be collapsed: https://deploy-preview-5830--docusaurus-2.netlify.app/docs/next/category/guides/), and eventually add some extra :hover styling to make it clear that the icon can be clicked independently from the text.

We could also allow Docusaurus users to provide their own custom icon if they want to.

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 a pull request may close this issue.

1 participant