-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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 styling issue on latest version #6493
Comments
Hey, it's indeed because of a minor breaking change that altered the sidebar's DOM structure: #5830 each category link is now wrapped in another You have selectors that are too exact: That's exactly why we now have stable class names as added in #5642. These stable class names are semantic and will never break. |
With such a big CSS file, you should definitely first search through all your CSS selectors and check if they are all applied correctly. We now have some kind of CSS styling guidelines that should help people avoid breaking changes: https://docusaurus.io/docs/next/styling-layout#global-styles Supabase has a lot of decent customizations. We are more than welcome to know their pain points and how we can provide more features to help them achieve a more robust design. |
We have a place to report customization use-cases: #5468 We'll try to make this less fragile over time, please help us do so |
Totally understand the change, thanks for pointing out! I also understand that using class names is the better approach. For a quick test, how can the linked selector be changed to target under consideration of the new div? |
I don't really know, it looks a bit complicated to me. A quick fix is to insert a |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
As outlined in supabase/supabase#5138, the sidebar css styling is not applied properly. It works on
2.0.0-beta.6
version but not the latest version. Has there been any API change I could not find or is this a bug?Steps to reproduce
Expected behavior
The categories should be styled as on supbase.com/docs.
Actual behavior
See the screenshot supabase/supabase#5138 where the category is not styled correctly. It can be achieved downgrading to
2.0.0-beta.6
Your environment
Reproducible demo
No response
Self-service
The text was updated successfully, but these errors were encountered: