Skip to content

Commit

Permalink
EYCDTK-52 Cookie banner update (#1371)
Browse files Browse the repository at this point in the history
* Improve cookie banner alignment
* Update cookie page to wrap text on mobile
* Update to only apply styling to mobile

---------
  • Loading branch information
martikat authored Oct 30, 2024
1 parent ec65c67 commit dad76ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,13 @@ ul>li>ul>li {
.text-secondary {
color: $govuk-secondary-text-colour;
}

.govuk-cookie-banner .govuk-button-group {
align-items: center;
}

.cookie-policy-body {
@include govuk-media-query($until: tablet) {
overflow-wrap: anywhere;
}
}
3 changes: 2 additions & 1 deletion app/views/settings/cookie_policy.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

.govuk-grid-row class='govuk-!-margin-bottom-7'
.govuk-grid-column-two-thirds-from-desktop
= m('cookie_policy.body')
.cookie-policy-body
= m('cookie_policy.body')

= form_with url: settings_path, method: :post, local: true do |f|
= f.hidden_field :request_path, value: request.path
Expand Down

0 comments on commit dad76ee

Please sign in to comment.