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

Update Menu hover state #1410

Merged
merged 13 commits into from
Jun 17, 2021
Merged

Update Menu hover state #1410

merged 13 commits into from
Jun 17, 2021

Conversation

pomfrida
Copy link
Contributor

@pomfrida pomfrida commented Jun 4, 2021

Resolves #1363

But does not work on complex menu
@pomfrida pomfrida self-assigned this Jun 4, 2021
@pomfrida
Copy link
Contributor Author

pomfrida commented Jun 4, 2021

So this update ended up a bit more complex than expected. We have auto width menus so the width gets auto adjusted when text becomes bold on hover. I added a hack to avoid the auto width adjustment but this only works for simple menus (when there's only one child and the child is a string).

Example of menu working as expected:
https://user-images.githubusercontent.com/31915755/120807460-41f7ad00-c548-11eb-9a96-fc0e9215701c.mov

Example of complex menu not working ideal (as there's more than one child and combination of different types):
https://user-images.githubusercontent.com/31915755/120807595-6a7fa700-c548-11eb-8d6d-5554a4bea310.mov

@pomfrida pomfrida changed the title [WIP] Update Menu hover state Update Menu hover state Jun 9, 2021
@pomfrida pomfrida marked this pull request as ready for review June 9, 2021 11:20
@pomfrida
Copy link
Contributor Author

Blocked by #1426

@pomfrida
Copy link
Contributor Author

Changes done as suggested in #1426 and ready for review now

Copy link
Contributor

@mimarz mimarz left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@pomfrida pomfrida merged commit 6bafa52 into equinor:develop Jun 17, 2021
@pomfrida pomfrida deleted the update-menu branch June 17, 2021 09:42
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 this pull request may close these issues.

Update hover state for the menu in dev
2 participants