-
Notifications
You must be signed in to change notification settings - Fork 13
feat: Mobile content-navigation-menu #310
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
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # assets/js/main.js
# Conflicts: # assets/js/aside.js
✅ Deploy Preview for fipguide ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
# Conflicts: # assets/js/highlightHeadline.js # i18n/fr.yaml
Changes:
|
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
The mobile content navigation is ready for review! :)
|
Great job @therobrob 🤩 I have two minor ideas :) |
Thanks :)
|
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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:

Example: https://deploy-preview-310--fipguide.netlify.app/en/news/6/
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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?
|
# Conflicts: # assets/sass/sidemenu.scss
There was a problem hiding this 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.
There was a problem hiding this comment.
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.

There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
border-radius: 1rem 1rem 0 0; | |
border-radius: var(--border-radius-m) var(--border-radius-m) 0 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Display a content-navigation-menu on mobile devices (max. MD).