- Issue created by @ckrina
- Status changed to Postponed
8 months ago 10:52am 26 March 2024 - Status changed to Active
8 months ago 9:54am 28 March 2024 - ๐ช๐ธSpain ckrina Barcelona
Un-postponing since ๐ Implement drawer functionality Needs review has been merged in.
- ๐ท๐บRussia kostyashupenko Omsk
I think better wait for https://www.drupal.org/project/navigation/issues/3427657 ๐ Implement the new designs to the drawer Needs review
- First commit to issue fork.
- ๐บ๐ธUnited States bronzehedwick New York
https://www.drupal.org/project/navigation/issues/3427657 ๐ Implement the new designs to the drawer Needs review is fixed :)
Pushed an MR to fix popovers in RTL languages.
- Status changed to Needs review
8 months ago 4:51pm 2 April 2024 - ๐ช๐ธSpain ckrina Barcelona
ckrina โ changed the visibility of the branch 3436129-ensure-the-drawer to hidden.
- Status changed to Needs work
8 months ago 7:26pm 2 April 2024 - ๐จ๐ฆCanada m4olivei Grimsby, ON
To test this, I've been:
- drush si -y demo_umami
- drush en -y navigation
- drush uli
- Use Chrome dev tools after page load to manually adjust the
html[dir]<code> attribute to set <code>rtl
as the value.
Let me know if there is a better way to test, and maybe lets put it into the issue description.
A few issues that I can see:
- The expand collapse functionality breaks things in rtl. @ckrina has a good gif above.
- At desktop, the first level chevrons should be pointing to the left, in the direction that the drawer now opens.
- When the drawer slides out, there is a subtle gradient that sweeps across the lower part of the navigation (see gif below)
Subtle gradient sweep (animation slowed to 10%):
- Assigned to bronzehedwick
- ๐บ๐ธUnited States bronzehedwick New York
Thanks for the feedback all, taking a look.
- ๐บ๐ธUnited States bronzehedwick New York
Hi all, I pushed fixes for the issues raised. However, note that a real RTL language, like Arabic, must be installed and selected for a proper test. Switching the
dir
property via browser dev tools will result in incorrect behavior, as Drupal isn't aware of this, and will incorrectly set an offset variable the navigation relies on to display properly.Issues fixed
- When the drawer slides out, there is a subtle gradient that sweeps across the lower part of the navigation (see gif below)
- At desktop, the first level chevrons should be pointing to the left, in the direction that the drawer now opens.
- RTL uses the wrong offset variable for it's positioning math (the "left" variable instead of the "right" variable)
- Issue was unassigned.
- Status changed to Needs review
8 months ago 8:52pm 2 April 2024 - ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
I've tested the issue with Hebrew. One detail i've noticed is that the font weight of the top level menu items is too small compared to for example english
similar for the drawer:
- Status changed to Needs work
8 months ago 9:26am 3 April 2024 - ๐ช๐ธSpain ckrina Barcelona
the font weight of the top level menu items is too small compared to for example english
I'm afraid this is something we can't solve? I's guess this is a font problem.
@bronzehedwick I found another small thing: the submenus have the wrong direction when the arrow is closed. It should be pointing down.
- ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
I'm afraid this is something we can't solve? I's guess this is a font problem.
but if you take a look into the main content area in https://www.drupal.org/files/issues/2024-04-03/hebrew.jpg โ you have actual bold typography as well, so it isn't the case that heavier weight isn't available for the font used?
- ๐ช๐ธSpain ckrina Barcelona
@rkoller It's a different font: we're using Inter for the Navigation, ans I'm not sure we've added the package for Hebrew of if there is one. Claro uses the system font. Either way, this discussion is worth its own ticket because goes beyond the "direction" of the page and lands in the typeface world :)
- ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
ohhhh thanks for clarification, completely forgot that the navigation might use a different font than the main content area!
- ๐บ๐ธUnited States bronzehedwick New York
@ckrina I fixed the incorrect chevron direction for RTL, as well as rebasing on top of
1.x
and resolving the conflicts. - Status changed to Needs review
8 months ago 1:50pm 3 April 2024 - Status changed to Fixed
8 months ago 8:24pm 3 April 2024 -
ckrina โ
committed 3a0eb905 on 1.x authored by
bronzehedwick โ
Issue #3436129: Fix drawer popovers for RTL
-
ckrina โ
committed 3a0eb905 on 1.x authored by
bronzehedwick โ
Automatically closed - issue fixed for 2 weeks with no activity.