- Issue created by @baluv3
- 🇺🇸United States mherchel Gainesville, FL, US
baluv3 → credited mherchel → .
- 🇺🇸United States baluv3
Moved this issue from https://github.com/Lullabot/navigation and assigned credit.
- Assigned to claireristow
- 🇨🇦Canada claireristow
Pausing work on this one to work on higher priority tickets. Will pick it up again later.
- Issue was unassigned.
- 🇨🇦Canada claireristow
Unassiging in case someone else wants to pick it up
- 🇺🇸United States shaal Boca Raton, FL
There's a really nice technique to animate dropdowns using CSS grid.
- First commit to issue fork.
- 🇵🇹Portugal Ricardocg
Just added an animation to the menus dropdown. Please review.
- Status changed to Needs review
about 1 year ago 3:09pm 23 October 2023 - @ricardocg opened merge request.
- 🇵🇹Portugal Ricardocg
@finnsky Hi, I think the '&' is necessary for it to work since we do not want to add those two lines of code to all nav items, only to the ones with a dropdown. :)
- 🇷🇸Serbia finnsky
@Ricardocg
Please take a look
https://git.drupalcode.org/issue/navigation-3374460/-/commit/b392846e4eb...Also we have error in js `aria-expanded` :)
- 🇵🇹Portugal Ricardocg
Hi, as for the scrollIntoView, i can not see any difference compared with the 1.x branch.
Regarding the js error, the change came from the merge with 1.x, and the code is already there (https://git.drupalcode.org/project/navigation/-/blame/1.x/js/sidebar.js). I can try to figure it out, but I do not know the implications it might have.
- 🇷🇸Serbia finnsky
This is what not working at the moment on 1.x. 1440x900 screen:
https://gyazo.com/3d8906bb5c301be0b93a6d077f6813a1
It seems works different in this branch, maybe cause of new wrappers, maybe cause of animation delay. Please review.
- 🇵🇹Portugal Ricardocg
Hi, I used the tugboat of another issue (#3388367) and the scrollIntoView is also not working. Here is a link for you to check: https://mr102-sdg73tajacsrfsxllki9tduxei4xrknq.tugboatqa.com/en/user/1?c...
Should we create a separate issue?
- Status changed to Needs work
about 1 year ago 4:51pm 24 October 2023 - 🇪🇸Spain ckrina Barcelona
Thanks @Ricardocg for working on this!! The transition looks really cool!
But I see the same as @finnsky: in my local with the latest code in 1.x the scroll to the active item works well, but not with this MR.
I've also left a few extra comments on the MR, so moving this to Needs work.
- @ricardocg opened merge request.
- 🇵🇹Portugal Ricardocg
I just made a new merge request from a new branch based on the current 1.x since the previews branch was merging changes that i did not make. :)
- 🇪🇸Spain ckrina Barcelona
@Ricardocg if this is ready to review the status needs to change to "Need review" :)
I was going to review it but it looks like it will need to be rebased with all the work that happened, so leaving it as Needs work.
- Status changed to Needs review
about 1 year ago 1:53pm 9 November 2023 - Status changed to Needs work
about 1 year ago 4:23pm 9 November 2023 - 🇪🇸Spain ckrina Barcelona
Actually, moving to NW because it needs to be rebased with the latest code.
- 🇮🇳India BhumikaVarshney Delhi
BhumikaVarshney → changed the visibility of the branch 3374460-add-menu-animations to active.
- 🇷🇸Serbia finnsky
I think we also need to make it work with about
https://css-tricks.com/introduction-reduced-motion-media-query/
Gonna work on it
- 🇷🇸Serbia finnsky
1. Added new media query
--admin-toolbar-reduced-motion (prefers-reduced-motion); to achieve #312. Reverted existing transitions for expand collapse sidebar etc for same reason.
3. Applied css transitions with css grid as recommended in #8 Looks good imo.
4. Also added animation for rotate buttons arrows. Not sure if we need it actually.
Please review!
- Status changed to Needs review
11 months ago 1:52pm 14 December 2023 - Status changed to Needs work
11 months ago 12:32pm 20 December 2023 - 🇪🇸Spain ckrina Barcelona
4. Also added animation for rotate buttons arrows. Not sure if we need it actually.
I really like this small details, thank you.
It looks great in Chrome, but unfortunately, this doesn't work with Firefox:
- 🇮🇳India AkshayAdhav Pune, India 🇮🇳
@ckrina
I tested this change on Firefox in Ubuntu. It worked fine on my end.