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 website documentation sidebar on browsers with prefers-reduced-motion #3671

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

cmdcolin
Copy link
Collaborator

Currently there is a bug in docusaurus that prevents browsers that set 'prefers-reduced-motion' from accessing sub-categories on the sidebar

facebook/docusaurus#8906

This uses the canary branch to fix this until a proper fix is released

Also clarifies the PluginDefinition docs in the autogen docs

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Apr 28, 2023
@cmdcolin cmdcolin changed the title Fix docs Fix website documentation sidebar on browsers with prefers-reduced-motion Apr 28, 2023
@cmdcolin cmdcolin added documentation and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Apr 28, 2023
// If pugin only has cjsUrl, don't display outside desktop
if (
!isElectron &&
!(plugin.esmUrl || plugin.url || plugin.umdUrl)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

afaik this would filter out e.g. esmLoc,umdLoc which we do not want. note we do not have a cjsLoc...not sure if we need it

@cmdcolin cmdcolin merged commit ca8c4e4 into main Apr 28, 2023
@cmdcolin cmdcolin deleted the fix_docs branch April 28, 2023 22:39
cmdcolin added a commit that referenced this pull request May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant