mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-04 05:20:46 -04:00
In user research we quite often saw people accidentally scroll the branding preview `<iframe>` when trying to scroll the page. This is suboptimal because they: - were confused why the page wasn’t scrolling - lost visibility of the branding they were trying to preview because it scrolled outside the bounds of the `<iframe>`
12 lines
455 B
HTML
12 lines
455 B
HTML
{% macro branding_preview(branding_style, endpoint) %}
|
|
<iframe src="{{ url_for(endpoint, branding_style=branding_style) }}" class="branding-preview" scrolling="no"></iframe>
|
|
{% endmacro %}
|
|
|
|
{% macro email_branding_preview(branding_style) %}
|
|
{{ branding_preview(branding_style, 'main.email_template') }}
|
|
{% endmacro %}
|
|
|
|
{% macro letter_branding_preview(branding_style) %}
|
|
{{ branding_preview(branding_style, 'main.letter_template') }}
|
|
{% endmacro %}
|