Skip to content

Commit

Permalink
Merge pull request #425 from epimorphics/issue/409-a11y
Browse files Browse the repository at this point in the history
Issue/409 a11y
  • Loading branch information
bogdanadrianmarc authored Aug 16, 2024
2 parents 3cf2137 + f156029 commit 412cc21
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 1.7.5 - 2024-08

- (Bogdan) Fixed a duplicate character bug when selecting dates
- (Bogdan) Added page titles for each individual view [GH-409](https://github.com/epimorphics/ukhpi/issues/409)
- (Bogdan) Set correct values for `aria-label` link attributes on the about page
[GH-413](https://github.com/epimorphics/ukhpi/issues/413)
- (Bogdan) Increased contrast for compare location dropdowns [GH-412](https://github.com/epimorphics/ukhpi/issues/412)
Expand Down
2 changes: 2 additions & 0 deletions app/views/browse/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
= content_for(:title, t('browse.show.main_heading'))

.grid-row
.column-full
%article
Expand Down
5 changes: 4 additions & 1 deletion app/views/changelog/_changelog_cy.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
= content_for(:title, "Hanes Newid")

%section#main.c-changelog
%h1.heading-large Mynegai Prisiau Tai y DU: hanes newid
%h1.heading-large
= I18n.t('common.header.app_title') + " : " + yield(:title)

%h2.heading-medium Ebrill 2023 – Newidiadau i ddaearyddiaeth awdurdodau lleol yn Lloegr

Expand Down
5 changes: 4 additions & 1 deletion app/views/changelog/_changelog_en.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
= content_for(:title, "Change History")

%section#main.c-changelog
%h1.heading-large UK House Price Index: change history
%h1.heading-large
= I18n.t('common.header.app_title') + " : " + yield(:title)

%h2.heading-medium April 2023 – Changes to local authority geography in England

Expand Down
2 changes: 2 additions & 0 deletions app/views/compare/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
= content_for(:title, t('compare.show.heading'))

.grid-row
.column-full
%article.c-compare
Expand Down
5 changes: 4 additions & 1 deletion app/views/doc/_about_ukhpi_cy.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
%h1.heading-large Data Cysylltiedig Mynegai Prisiau Tai y DU
= content_for(:title, "Am")

%h1.heading-large
= I18n.t('common.header.app_title') + " : " + yield(:title)

%h2.heading-medium
Beth sydd wedi ei gynnwys yn Set Ddata’r Mynegai Prisiau Tai?
Expand Down
5 changes: 4 additions & 1 deletion app/views/doc/_about_ukhpi_en.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
%h1.heading-large UK House Price Index Linked Data
= content_for(:title, "About")

%h1.heading-large
= I18n.t('common.header.app_title') + " : " + yield(:title)

%h2.heading-medium
What does the House Price Index Dataset consist of?
Expand Down
3 changes: 2 additions & 1 deletion app/views/landing/_index_cy.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
%section#main.c-landing-page.u-lang--en
%h1.heading-large Mynegai Prisiau Tai y DU
%h1.heading-large
= I18n.t('common.header.app_title')

%p
Defnyddiwch y teclyn chwilio i weld tueddiadau prisiau tai yn y DU:
Expand Down
3 changes: 2 additions & 1 deletion app/views/landing/_index_en.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
%section#main.c-landing-page.u-lang--en
%h1.heading-large UK House Price Index
%h1.heading-large
= I18n.t('common.header.app_title')

%p
Use the search tool to find house price trends in the UK:
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%meta{ 'http-equiv' => 'x-ua-compatible', content: 'ie=edge' }
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no' }
%title
= I18n.t('common.header.app_title')
= (yield(:title) + " - " unless yield(:title).blank?).to_s + I18n.t('common.header.app_title')
- if Rails.env.production?
= render partial: 'common/google-analytics'
= javascript_include_tag 'cookie', defer: true
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/print.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%meta{ 'http-equiv' => 'x-ua-compatible', content: 'ie=edge' }
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no' }
%title
= I18n.t('common.header.app_title')
= (yield(:title) + " - " unless yield(:title).blank?).to_s + I18n.t('common.header.app_title')
- if Rails.env.production?
= render partial: 'common/google-analytics'
= csrf_meta_tags
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/webpack_application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%meta{ 'http-equiv' => 'x-ua-compatible', content: 'ie=edge' }
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no' }
%title
= I18n.t('common.header.app_title')
= (yield(:title) + " - " unless yield(:title).blank?).to_s + I18n.t('common.header.app_title')
:javascript
document.querySelector('html').classList.add('js');
window.ukhpi = window.ukhpi || {};
Expand Down
4 changes: 2 additions & 2 deletions config/locales/cy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ cy:
dates_picker:
select_dates: "newid dyddiad dechrau neu ddiwedd"
date_range_prompt: "Newid amrediad y dyddiadau"
start: "Dechrau:"
end: "Diwedd:"
start: "Dechrau"
end: "Diwedd"

date:
abbr_day_names:
Expand Down
4 changes: 2 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ en:
dates_picker:
select_dates: "change start or end date"
date_range_prompt: "Change the date range"
start: "Start:"
end: "End:"
start: "Start"
end: "End"

# old-------------

Expand Down

0 comments on commit 412cc21

Please sign in to comment.