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

Finish the "Show sidebar on hover" PR #5544

Conversation

afonsofrancof
Copy link
Contributor

@afonsofrancof afonsofrancof commented Feb 19, 2025

In #4792 I made the zen-has-hover property be added to the sidebar and toolbar only if zen.view.compact.show-sidebar-and-toolbar-on-hover is true.

There was an oversight, though. The animation for the sidebar and toolbar was being triggered both by zen-has-hover and hover, like this

#navigator-toolbox:hover,
#navigator-toolbox[zen-has-hover],

This meant that :hover was overriding [zen-has-hover].

This PR makes both bars depend on zen-has-hover and removes hover.

I have tested this with the Browser Toolbox and it works perfectly :)

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. Bug labels Feb 19, 2025
@mauro-balades
Copy link
Member

Does it still work?

@afonsofrancof
Copy link
Contributor Author

afonsofrancof commented Feb 19, 2025

Does it still work?

What do you mean?
It doesn't work with just my old PR.
It needs this one.

I missed that the default css hover was applied to the sidebar and toolbar. I thought it only had zen-has-hover

@mauro-balades mauro-balades merged commit cc9b2cd into zen-browser:dev Feb 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants