- Issue created by @ckrina
- Assigned to claireristow
- ๐จ๐ฆCanada claireristow
I really like this solution Cristina! Working on this now.
- @ckrina opened merge request.
- Issue was unassigned.
- ๐ช๐ธSpain ckrina Barcelona
Just 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 :)
- ๐ท๐ธSerbia finnsky
@ckrina btw which is breakpoint between mobile desktop? 1024?
- Status changed to Postponed
about 1 year ago 10:17am 21 September 2023 - ๐ช๐ธSpain ckrina Barcelona
@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 ๐ Refactor CSS Needs work gets done to be sure there aren't too many conflicts.
- ๐ท๐ธSerbia finnsky
we 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 - Status changed to Active
about 1 year ago 10:35am 5 October 2023 - @finnsky opened merge request.
- Status changed to Needs review
about 1 year ago 3:23pm 5 October 2023 - ๐ท๐ธSerbia finnsky
What 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.
- ๐ท๐ธSerbia finnsky
Some minimal regressions in spacings and floating tooltip behaviour.
Should be managed in follow up tickets. - ๐จ๐ฆCanada claireristow
This is looking so great @finnky!! Just noticed these two small things which can be seen in my screenshot โ as well:
- The second level dropdown arrows have lost their right padding so they're showing tight to the background color.
- In the designs, it looks like we're hiding the "collapse/expand sidebar" item in the sticky menu in favour of the close button in the top right corner of the sidebar. Is that still accurate or did we decide to keep it?
- ๐ท๐ธSerbia finnsky
Thanks 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 ๐ Divide menu.pcss.css file into components Active
2. I cannot understand it from design, can be follow up with disqussion if we need it. Can be easy hidden for sure. - Status changed to Needs work
about 1 year ago 4:29pm 8 October 2023 - ๐ช๐ธSpain ckrina Barcelona
Answering 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.
In the designs, it looks like we're hiding the "collapse/expand sidebar" item in the sticky menu in favour of the close button in the top right corner of the sidebar.
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.
1. js/admin-toolbar-wrapper.js: {}
Really cool that youโve broken it into different files!
2. Media queries. For now only one 1024. Because we cannot start layout shift on 560.
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.
I have suggestion how to rework it (โฆ) * 560 - 1023 works as desktop without displace shift.
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 ๐ Toolbar Prototype Usability Testing Phase 3 Fixed 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.
5. Added `control-bar` css component. it has temporary styled button. Hidden on 1024+. Maybe should be fixed on top. Not clean in design
.
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.8. Sidebar.js and all css definetly need some style/eslinting. Tryed to avoid in this MR.
Cool, feel free to open a new issue when this is merged in to handle all that.
Again, great work!!
- ๐ช๐ธSpain ckrina Barcelona
Removing the [PP1] tag from the title that I missed.
- Status changed to Needs review
about 1 year ago 8:56am 9 October 2023 - Status changed to Needs work
about 1 year ago 1:06pm 9 October 2023 - ๐ช๐ธSpain ckrina Barcelona
Missed changing it to NW for the latest small feedback I found.
- ๐ซ๐ฎFinland lauriii Finland
There'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?
- ๐ท๐ธSerbia finnsky
RE #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
- Status changed to Needs review
about 1 year ago 6:08am 10 October 2023 -
ckrina โ
committed 5b92e180 on 1.x authored by
finnsky โ
Issue #3384996: [PP1] Mobile Toolbar implementation
-
ckrina โ
committed 5b92e180 on 1.x authored by
finnsky โ
- Status changed to Fixed
about 1 year ago 10:37am 10 October 2023 - ๐ช๐ธSpain ckrina Barcelona
Merged! ๐
Thanks @finnsky for all the work here.
Let's move everything we've found into follow-ups so it's easier to handle them.
- ๐ Mobile navigation shows internal croll on iPhone Active (I can reproduce it too)
- Non-responsive admin pages create issues to access to the Toolbar.
- ๐ Umami looses its padding at some desktop breakpoints Active
Automatically closed - issue fixed for 2 weeks with no activity.