Skip to content

Conversation

therobrob
Copy link
Member

@therobrob therobrob commented Sep 12, 2025

Description

Display a content-navigation-menu on mobile devices (max. MD).

  • sticky menu bar with page name
  • bottom sheet: choose another chapter
  • click and drag-support

Copy link

netlify bot commented Sep 12, 2025

Deploy Preview for fipguide ready!

Name Link
🔨 Latest commit 78b4864
🔍 Latest deploy log https://app.netlify.com/projects/fipguide/deploys/68e57df90d34670008776479
😎 Deploy Preview https://deploy-preview-310--fipguide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@therobrob therobrob changed the title Feat/mobile content navigation menu Mobile content-navigation-menu Sep 12, 2025
@therobrob
Copy link
Member Author

Changes:

  • Remove the "current chapter" text
  • Instead, display the country/operator name
  • Replace the button with a drag indicator

therobrob and others added 15 commits September 29, 2025 18:59
Instead, display the country/operator name
Replace the button with a drag indicator
Instead, display the country/operator name
Replace the button with a drag indicator
# Conflicts:
#	assets/js/resizeObserver.js
#	layouts/_default/baseof.html
@therobrob
Copy link
Member Author

The mobile content navigation is ready for review! :)
Some annotations:

  • i'm sure, there is some potential for code improvement – feel free to comment or adjust.
  • the dragging-mechanism isn't perfect jet. The deltaY and the according ifs have to adjusted, but i wanted to finish this first implementation, because it took a long time.
  • I've added an issue to unite the overlay implementations: Unite overlay implementations #349

@therobrob therobrob marked this pull request as ready for review October 4, 2025 09:14
@therobrob therobrob requested a review from MoritzWeber0 October 4, 2025 09:16
@lenderom
Copy link
Member

lenderom commented Oct 4, 2025

Great job @therobrob 🤩

I have two minor ideas :)

  1. What do you think about adding the back to country option also above the headline for easier usage. So in this case: <- Back to Portugal
    Screenshot_20251004_103020_Chrome

  2. What do you think about closing the menu when clicking on the greyed out content part of the page:
    Screenshot_20251004_102934_Chrome

@therobrob
Copy link
Member Author

Great job @therobrob 🤩

I have two minor ideas :)

  1. What do you think about adding the back to country option also above the headline for easier usage. So in this case: <- Back to Portugal
  2. What do you think about closing the menu when clicking on the greyed out content part of the page:

Thanks :)

  1. you can go back to country in the open bottom-sheet already. Do you think, it is that important to add it at the top of the page? I wonder if it's too prominent there 🤔
  2. This idea is included in Unite overlay implementations #349. Should we add it in this PR already?

Copy link
Member

@MoritzWeber0 MoritzWeber0 left a comment

Choose a reason for hiding this comment

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

Thanks, the mobile navigation menu looks great! 🥳

Before I start with the detailed review, here are some visual spots that I noticed.

Copy link
Member

Choose a reason for hiding this comment

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

🎨 (non-blocking)

The border radius doesn't match in dark mode.

Image

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in the newest commit :)

Copy link
Member

Choose a reason for hiding this comment

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

Small detail, but there are left and right borders on the upper element, but not the lower element. Would be good to make this uniform.

image

Copy link
Member

Choose a reason for hiding this comment

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

🐛 (bug)

The news pages are broken:

Image

Example: https://deploy-preview-310--fipguide.netlify.app/en/news/6/

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in the newest commit :)

Copy link
Member

Choose a reason for hiding this comment

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

It is fixed indeed, but now the content navigation is no longer there on mobile. Can we add it, similarly to the operator and country pages?

@lenderom
Copy link
Member

lenderom commented Oct 6, 2025

Great job @therobrob 🤩
I have two minor ideas :)

  1. What do you think about adding the back to country option also above the headline for easier usage. So in this case: <- Back to Portugal
  2. What do you think about closing the menu when clicking on the greyed out content part of the page:

Thanks :)

  1. you can go back to country in the open bottom-sheet already. Do you think, it is that important to add it at the top of the page? I wonder if it's too prominent there 🤔
  2. This idea is included in Unite overlay implementations #349. Should we add it in this PR already?
  1. This is also fine for me. It was just a quick idea that came to my mind :)
  2. Ah, thanks haven't seen it :D

@MoritzWeber0 MoritzWeber0 changed the title Mobile content-navigation-menu feat: Mobile content-navigation-menu Oct 7, 2025
Copy link
Member

@MoritzWeber0 MoritzWeber0 left a comment

Choose a reason for hiding this comment

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

I'm through the HTML + SCSS parts, they mostly look great :)
I'll have a look at the JS in the next days.

Copy link
Member

Choose a reason for hiding this comment

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

🎨 (visual non-blocking)

In Chrome on Android, the gesture bar overlays the content when scrolling down. I don't know if there is an option to tell Chrome to not do that and keep the gesture bar in it's separate area, so we can also handle this as issue and fix it afterwards, unless you have a solution in mind.

Image

Copy link
Member

Choose a reason for hiding this comment

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

It is fixed indeed, but now the content navigation is no longer there on mobile. Can we add it, similarly to the operator and country pages?

@@ -0,0 +1,87 @@
<aside id="aside" class="o-aside o-aside__bottom-sheet">
Copy link
Member

Choose a reason for hiding this comment

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

Since the same HTML is used for the aside and the bottom-sheet, shouldn't we just take o-aside and remove the "bottom-sheet" prefix?

o-aside__bottom-sheet > o-aside
o-aside__bottom-sheet-header > o-aside__header
o-aside > o-aside__drag
and so on.

The only conflict I see it the news sidebar, but maybe we can consistently update the classes there.

<button
class="o-aside__bottom-sheet-header"
aria-label="{{ T "contentNavigation.button" }}"
aria-controls="bottomSheet-content"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
aria-controls="bottomSheet-content"
aria-controls="bottom-sheet-content"

The id of the content element is different.

font-size: 1.8rem;
overflow-x: hidden;
margin: 0;
margin: 0 0 7rem 0;
Copy link
Member

Choose a reason for hiding this comment

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

The margin should only be applied if we are in mobile view and on a page where the mobile navigation is visible. For example not on the General Information page or on desktop devices.

overflow: hidden;
flex-flow: column;
transition: transform 0.5s ease-in-out;
border-radius: 1rem 1rem 0 0;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
border-radius: 1rem 1rem 0 0;
border-radius: var(--border-radius-m) var(--border-radius-m) 0 0;

Copy link
Member

Choose a reason for hiding this comment

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

Small detail, but there are left and right borders on the upper element, but not the lower element. Would be good to make this uniform.

image

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.

3 participants