Closed (fixed)
Project:
Navigation
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2023 at 08:54 UTC
Updated:
24 Oct 2023 at 10:39 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
ckrinaComment #3
claireristow commentedI really like this solution Cristina! Working on this now.
Comment #5
claireristow commentedComment #6
ckrinaJust noting in here (because it was something we just discussed live with @claireristow) that what I pushed to the MR was just an initial proof of concept for her to see what I had been plying with, and it isn't usable. So whoever takes this on: please better start from scratch with a new MR :)
Comment #7
finnsky commented@ckrina btw which is breakpoint between mobile desktop? 1024?
Comment #8
ckrina@finnsky I assumed 35rem for now. It might be subject to change if we see another size works better once this is evolves.
Postponing this issue until #3386927: [PLAN] Refactor CSS gets done to be sure there aren't too many conflicts.
Comment #9
finnsky commentedwe maybe need 2 breakpoints:
- one is about 35rem=560px before it toolbar works as mobile.
- another is about 1024px, between 560-1024 toolbar will work with expand collapse but will NOT shift content.
- 1024+ desktop behaviour
Comment #10
finnsky commentedComment #12
finnsky commentedWhat added:
1. js/admin-toolbar-wrapper.js: {}
Js for managing toolbar triggers and wrapper behaviour.
Also controls html event listeners and Drupal.displace.
Existing sidebar.js contains only inner Sidebar functions.
Later should be also splitted to:
- details(or whatever we name it).
- tooltip functions.
- menu functions.
- etc.
2. Media queries. For now only one 1024. Because we cannot start layout shift on 560.
https://gyazo.com/7edd48da28db2270af19b6ae1294ec5e
I have suggestion how to rework it
* 0-559 works as explained on mobile design.
* 560 - 1023 works as desktop without displace shift.
* 1024+ works as desktop.
3. Added `js-` prefixes to html toogled classes. Maybe it will helps some developer not use them in twig.
4. Added `js-admin-toolbar-activated` helper class to avoid layout shifts and text change shifts.
5. Added `control-bar` css component. it has temporary styled button. Hidden on 1024+. Maybe should be fixed on top. Not clean in design.
6. Added `admin-toolbar__close-button` also styled temporary. Hidden on 1024+
7. Toolbar always collapsed on load on mobile.
8. Sidebar.js and all css definetly need some style/eslinting. Tryed to avoid in this MR.
Comment #13
finnsky commentedSome minimal regressions in spacings and floating tooltip behaviour.
Should be managed in follow up tickets.
Comment #14
claireristow commentedThis is looking so great @finnky!! Just noticed these two small things which can be seen in my screenshot as well:
Comment #15
finnsky commentedThanks for review.
1. Should be resolved in follow up issues i guess. I hope parts of this will merged https://www.drupal.org/project/navigation/issues/3391533
2. I cannot understand it from design, can be follow up with disqussion if we need it. Can be easy hidden for sure.
Comment #16
ckrinaAnswering more things per parts:
About the breadcrumb: great idea! But let's keep issues focused on the main purpose defined and open extra things big enough detected in follows-ups. I’ve created [3392481] to deal with the breadcrumb work. Feel free to assign it to yourself and add the work in there.
This is the desired behavior. We don't want the neither bottom sticky region nor the "Collapse sidebar" button on mobile. And that region needs to be listed right below the last menu from the medium region as if it was another element in the flex region.
Really cool that you’ve broken it into different files!
Agreed, 560px doesn’t work. 1024px seems fine for now, and we can change later if we want thanks to defining it in one place.
One of the feedback we got from the initial round of user tests was to not have a middle step the current toolbar has happening without notice. Even though what you are suggesting is not exactly what the current Toolbar is doing, I think this idea could use some user tests before implementing. I’ve added it to #3392452: Toolbar Prototype Usability Testing Phase 3 so we can test during DrupalCon, but it’ll probably need a MR to do A/B testing. So let’s open a follow-up to implement it when this is merged.
.
I've added a link to Figma in the summary because it might help as a reference, but specific things like spacing and colors (or even the borders) might change when we get the final designs.
Cool, feel free to open a new issue when this is merged in to handle all that.
Again, great work!!
Comment #17
finnsky commentedComment #18
ckrinaRemoving the [PP1] tag from the title that I missed.
Comment #19
finnsky commentedComment #20
ckrinaMissed changing it to NW for the latest small feedback I found.
Comment #21
lauriiiThere's some horizontal scroll within the navigation itself at least on iPhone which is pretty annoying. Is that something we should address here or in a follow-up?
Comment #22
finnsky commentedRE #21
I think follow-up needed, I don't have this in android. Also we need to use
dvh here. Because on my side i have `User link` outside of screen sometimes.
https://caniuse.com/mdn-css_types_length_viewport_percentage_units_dynamic
Upd. Views core js also breaks toolbar on mobile
Comment #23
finnsky commentedComment #25
ckrinaMerged! 🎉
Thanks @finnsky for all the work here.
Let's move everything we've found into follow-ups so it's easier to handle them.