Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/assets/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ $nhsuk-assets-path: "/nhsuk-frontend/assets/";
// Add styles for components which mock the native app
@import "native-header";
@import "native-bottom-navigation";
@import "native-page";

// Add your custom CSS/Sass styles below.
6 changes: 6 additions & 0 deletions app/assets/sass/native-page.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// The native app doesn't use the a darker grey footer
// so set the background colour for the HTML to
// match the page colour instead.
.app-native__html {
background-color: $nhsuk-body-background-colour;
}
4 changes: 4 additions & 0 deletions app/views/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
{% from "nhsapp/components/tag/macro.njk" import nhsappTag %}
{% from "nhsapp/components/timeline/macro.njk" import nhsappTimeline %}

{% if data.web !== 'yes' %}
{% set htmlClasses = "app-native__html" %}
{% endif %}

{% block pageTitle -%}
{%- if errors === true or (errors | length) %}Error: {% endif -%}
{%- if pageName %}{{ pageName }} – {% endif -%}
Expand Down