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

Refresh: CSS base bundle clean up #15120

Open
Tracked by #14826
wen-2018 opened this issue Sep 11, 2024 · 0 comments
Open
Tracked by #14826

Refresh: CSS base bundle clean up #15120

wen-2018 opened this issue Sep 11, 2024 · 0 comments
Labels
Refresh 🦖 Work related to the 2024 site refresh

Comments

@wen-2018
Copy link
Collaborator

Description

Currently, the m24 base bundle doesn't include existing component styles. We should update it to include common styles in protocol-mozilla, but with imports of the new nav / footer, home and new styles instead of the old ones, avoiding serving redundant styles to users when the brand refresh switch is on:

{% if switch('m24-base') and LANG.startswith('en-') %}
  {{ css_bundle('m24-base') }}
{% else %}
  {{ css_bundle('protocol-mozilla') }}
{% endif %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refresh 🦖 Work related to the 2024 site refresh
Projects
Status: Dev Ready
Development

No branches or pull requests

1 participant