Skip to content
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

Reduce menu dropdowns #14484

Merged
merged 5 commits into from Apr 30, 2024
Merged

Reduce menu dropdowns #14484

merged 5 commits into from Apr 30, 2024

Conversation

janbrasna
Copy link
Contributor

One-line summary

With upcoming sunset of sub-pages related to privacy value proposition, the prominent menu items in dropdown nav need removing — thus making all the columns rather uneven. I'm reshuffling the contents to move from 4-row grid to 3-row.

Significant changes and points to review

  • This moves around some of the items for the arrangement in the new grid to make more sense.
  • FYI the icon for privacy-promise is kept on purpose (see issue ref)
  • There's no reason to omit future.m.o without l10n since the site is en-only anyways;)
  • Also removes Monitor branding conditionals that are now passé.
  • Also updates VPN logo to link from protocol_assets
    • (changes from current blue-grey-ish in nav to standard black)

Issue / Bugzilla link

Fixes #14458
Refs #14248

Testing

main

👇 👇 👇

feat

Copy link
Contributor

@reemhamz reemhamz left a comment

Choose a reason for hiding this comment

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

Just a teeeennyyy little suggestion, and I'll be happy to merge!
Great job with this much-needed clean-up! ☕ 💯

{% if mozilla_monitor %}
<h4 class="c-menu-item-title">{{ ftl('navigation-v2-mozilla-monitor', fallback='navigation-v2-firefox-monitor') }}</h4>
{% else %}
<h4 class="c-menu-item-title">{{ ftl('navigation-v2-firefox-monitor', fallback='navigation-firefox-monitor') }}</h4>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: Now that we're using the new Mozilla Monitor string here, feel free to remove the (now obsolete) navigation-v2-firefox-monitor string from the navigation_v2.ftl file :) since it's been (much) more than 2 months (referencing the new rule we implemented of us deciding to remove obsolete strings from our codebase after ~2 months) from when we implemented the new string!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 Makes sense. I felt the nav is rather "sensitive" to do any cleanups but after wandering around the locales I see the typical pattern: whenever the default string is used, it's amid of 80% untranslated elements in English anyways. And for a branding change, it's way better to have a fresh default, than an outdated name, even if localised. You got it.

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.44%. Comparing base (64ce2a4) to head (676df5f).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14484   +/-   ##
=======================================
  Coverage   76.44%   76.44%           
=======================================
  Files         148      148           
  Lines        7977     7978    +1     
=======================================
+ Hits         6098     6099    +1     
  Misses       1879     1879           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@reemhamz reemhamz merged commit 9553c3d into mozilla:main Apr 30, 2024
6 checks passed
@janbrasna janbrasna deleted the upd/menu-dropdowns branch April 30, 2024 12:36
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.

Even out navigation drop down menus
2 participants