Skip to content

Commit

Permalink
Don't show the close button on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson committed Jun 3, 2024
1 parent 2a56753 commit 2e518c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion bedrock/firefox/templates/firefox/all/lang.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
<h2 class="c-step-name {% if not (product and platform) %} t-step-disabled{% endif %}">
3. {{ ftl('firefox-all-language') }}
{% if product and platform and locale %}
<span class="c-step-choice">{{ locale_name }}</span> <a href="{{ url('firefox.all_platform', product_slug=product.slug, platform=platform) }}" class="c-step-icon"><img alt="{{ ftl('firefox-all-change-language') }}" src="{{ static('protocol/img/icons/close.svg') }}" width="30" height="30"></a>
<span class="c-step-choice">{{ locale_name }}</span>
{% if product.slug.startswith('desktop') %}
<a href="{{ url('firefox.all_platform', product_slug=product.slug, platform=platform) }}" class="c-step-icon"><img alt="{{ ftl('firefox-all-change-language') }}" src="{{ static('protocol/img/icons/close.svg') }}" width="30" height="30"></a>
{% endif %}
{% elif product and platform %}
<img alt="{{ ftl('firefox-all-down-arrow') }}" class="c-step-icon" src="{{ static('protocol/img/icons/arrow-down.svg') }}" width="30" height="30">
{% else %}
Expand Down
5 changes: 4 additions & 1 deletion bedrock/firefox/templates/firefox/all/platform.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
<h2 class="c-step-name{% if not product %} t-step-disabled{% endif %}">
2. {{ ftl('firefox-all-platform') }}
{% if product and platform %}
<span class="c-step-choice">{{ platform_name }}</span> <a href="{{ url('firefox.all_product', product_slug=product.slug) }}" class="c-step-icon"><img alt="{{ ftl('firefox-all-change-platform') }}" src="{{ static('protocol/img/icons/close.svg') }}" width="30" height="30"></a>
<span class="c-step-choice">{{ platform_name }}</span>
{% if product.slug.startswith('desktop') %}
<a href="{{ url('firefox.all_product', product_slug=product.slug) }}" class="c-step-icon"><img alt="{{ ftl('firefox-all-change-platform') }}" src="{{ static('protocol/img/icons/close.svg') }}" width="30" height="30"></a>
{% endif %}
{% elif product %}
<img alt="{{ ftl('firefox-all-down-arrow') }}" class="c-step-icon" src="{{ static('protocol/img/icons/arrow-down.svg') }}" width="30" height="30">
{% else %}
Expand Down

0 comments on commit 2e518c2

Please sign in to comment.