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 AppNavigationItem actions visibility #3165

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

raimund-schluessler
Copy link
Contributor

@raimund-schluessler raimund-schluessler commented Sep 3, 2022

This PR fixes all issues I described in #3094 (comment):

  • The actions and counter are now visible when the AppNavigationItem is active
  • The actions are now visible when the AppNavigationItem has the undo state
  • The actions now appear on hover if the AppNavigationItem is editable
  • The actions and counter do not overflow anymore

I had to switch from JS to CSS and hover/focus/active classes, because the active state is applied by router-link and not easily accessible in JS (one could switch to a scoped slot, but that creates different trouble). However, I think handling the hover/focus in CSS is anyway more performant and creates less issues (I saw some weird glitches with the JS implementation, probably the mouseover events were not correctly called).

The alignment of the counter might need some adjustments still, but I would propose to fix this in a follow-up PR to first get it working and then do the fine-tuning.

@raimund-schluessler raimund-schluessler added bug Something isn't working 3. to review Waiting for reviews feature: app-navigation Related to the app-navigation component high High priority regression Regression of a previous working feature labels Sep 3, 2022
@raimund-schluessler raimund-schluessler added this to the 6.0.0 milestone Sep 3, 2022
@raimund-schluessler
Copy link
Contributor Author

/backport to stable6

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
@raimund-schluessler raimund-schluessler merged commit 1738480 into master Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working feature: app-navigation Related to the app-navigation component high High priority regression Regression of a previous working feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AppNavigationItem actions should be visible on active
3 participants