govuk_publishing_components 63.1.2 → 63.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/govuk_publishing_components/app-promo-banner/govuk-app-icon.png +0 -0
  3. data/app/assets/javascripts/govuk_publishing_components/analytics-ga4/ga4-page-views.js +3 -2
  4. data/app/assets/javascripts/govuk_publishing_components/components/app-promo-banner.js +134 -0
  5. data/app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js +1 -0
  6. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_app-promo-banner.scss +64 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +0 -13
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +0 -14
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-list.scss +2 -12
  11. data/app/controllers/govuk_publishing_components/applications_page_controller.rb +1 -2
  12. data/app/controllers/govuk_publishing_components/audit_controller.rb +0 -2
  13. data/app/models/govuk_publishing_components/applications_page.rb +0 -4
  14. data/app/models/govuk_publishing_components/audit_comparer.rb +3 -54
  15. data/app/views/govuk_publishing_components/applications_page/_table-content.html.erb +0 -7
  16. data/app/views/govuk_publishing_components/applications_page/show.html.erb +0 -1
  17. data/app/views/govuk_publishing_components/audit/_applications.html.erb +2 -6
  18. data/app/views/govuk_publishing_components/components/_app_promo_banner.html.erb +72 -0
  19. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +4 -10
  20. data/app/views/govuk_publishing_components/components/_summary_card.html.erb +4 -2
  21. data/app/views/govuk_publishing_components/components/_summary_list.html.erb +2 -2
  22. data/app/views/govuk_publishing_components/components/docs/accordion.yml +1 -1
  23. data/app/views/govuk_publishing_components/components/docs/app_promo_banner.yml +30 -0
  24. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +0 -16
  25. data/app/views/govuk_publishing_components/components/docs/organisation_logo.yml +4 -6
  26. data/app/views/govuk_publishing_components/components/docs/summary_card.yml +7 -0
  27. data/app/views/govuk_publishing_components/components/docs/tabs.yml +1 -1
  28. data/app/views/govuk_publishing_components/components/layout_for_public/_account-layout.html.erb +1 -7
  29. data/config/locales/ar.yml +10 -4
  30. data/config/locales/az.yml +10 -4
  31. data/config/locales/be.yml +10 -4
  32. data/config/locales/bg.yml +10 -4
  33. data/config/locales/bn.yml +10 -4
  34. data/config/locales/cs.yml +10 -4
  35. data/config/locales/cy.yml +10 -4
  36. data/config/locales/da.yml +10 -4
  37. data/config/locales/de.yml +10 -4
  38. data/config/locales/dr.yml +10 -4
  39. data/config/locales/el.yml +10 -4
  40. data/config/locales/en.yml +6 -0
  41. data/config/locales/es-419.yml +10 -4
  42. data/config/locales/es.yml +10 -4
  43. data/config/locales/et.yml +10 -4
  44. data/config/locales/fa.yml +10 -4
  45. data/config/locales/fi.yml +10 -4
  46. data/config/locales/fr.yml +10 -4
  47. data/config/locales/gd.yml +10 -4
  48. data/config/locales/gu.yml +10 -4
  49. data/config/locales/he.yml +10 -4
  50. data/config/locales/hi.yml +10 -4
  51. data/config/locales/hr.yml +10 -4
  52. data/config/locales/hu.yml +10 -4
  53. data/config/locales/hy.yml +10 -4
  54. data/config/locales/id.yml +10 -4
  55. data/config/locales/is.yml +10 -4
  56. data/config/locales/it.yml +10 -4
  57. data/config/locales/ja.yml +10 -4
  58. data/config/locales/ka.yml +10 -4
  59. data/config/locales/kk.yml +10 -4
  60. data/config/locales/ko.yml +10 -4
  61. data/config/locales/ku.yml +10 -4
  62. data/config/locales/ky.yml +10 -4
  63. data/config/locales/lt.yml +10 -4
  64. data/config/locales/lv.yml +10 -4
  65. data/config/locales/ms.yml +10 -4
  66. data/config/locales/mt.yml +10 -4
  67. data/config/locales/ne.yml +10 -4
  68. data/config/locales/nl.yml +10 -4
  69. data/config/locales/no.yml +10 -4
  70. data/config/locales/pa-pk.yml +10 -4
  71. data/config/locales/pa.yml +10 -4
  72. data/config/locales/pl.yml +10 -4
  73. data/config/locales/ps.yml +10 -4
  74. data/config/locales/pt.yml +10 -4
  75. data/config/locales/ro.yml +10 -4
  76. data/config/locales/ru.yml +10 -4
  77. data/config/locales/si.yml +10 -4
  78. data/config/locales/sk.yml +10 -4
  79. data/config/locales/sl.yml +10 -4
  80. data/config/locales/so.yml +10 -4
  81. data/config/locales/sq.yml +10 -4
  82. data/config/locales/sr.yml +10 -4
  83. data/config/locales/sv.yml +10 -4
  84. data/config/locales/sw.yml +10 -4
  85. data/config/locales/ta.yml +10 -4
  86. data/config/locales/th.yml +10 -4
  87. data/config/locales/ti.yml +10 -4
  88. data/config/locales/tk.yml +10 -4
  89. data/config/locales/tr.yml +10 -4
  90. data/config/locales/uk.yml +10 -4
  91. data/config/locales/ur.yml +10 -4
  92. data/config/locales/uz.yml +10 -4
  93. data/config/locales/vi.yml +10 -4
  94. data/config/locales/zh-hk.yml +10 -4
  95. data/config/locales/zh-tw.yml +10 -4
  96. data/config/locales/zh.yml +10 -4
  97. data/lib/govuk_publishing_components/app_helpers/asset_helper.rb +0 -27
  98. data/lib/govuk_publishing_components/presenters/organisation_logo_helper.rb +17 -13
  99. data/lib/govuk_publishing_components/version.rb +1 -1
  100. data/node_modules/axe-core/axe.d.ts +4 -2
  101. data/node_modules/axe-core/axe.js +80 -39
  102. data/node_modules/axe-core/axe.min.js +3 -3
  103. data/node_modules/axe-core/locales/_template.json +4 -2
  104. data/node_modules/axe-core/package.json +3 -5
  105. data/node_modules/axe-core/sri-history.json +4 -0
  106. metadata +7 -2
@@ -13,6 +13,12 @@ ta:
13
13
  hide_all: அனைத்துப் பிரிவுகளையும் மறை
14
14
  show_all: அனைத்துப் பிரிவுகளையும் காட்டு
15
15
  this_section_visually_hidden: " இந்தப் பிரிவு"
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: "%{title}-க்குள் தேடவும்"
18
24
  attachment:
@@ -155,6 +161,10 @@ ta:
155
161
  selected:
156
162
  organisation_schema:
157
163
  all_content_search_description: "%{organisation}-லிருந்து அனைத்து உள்ளடக்கத்தையும் கண்டறி"
164
+ pagination:
165
+ next:
166
+ pagination: பக்கமிடுதல்
167
+ previous:
158
168
  password_input:
159
169
  button:
160
170
  button_aria_hide_label:
@@ -164,10 +174,6 @@ ta:
164
174
  label:
165
175
  password_hidden_announcement:
166
176
  password_shown_announcement:
167
- pagination:
168
- next:
169
- pagination: பக்கமிடுதல்
170
- previous:
171
177
  print_link:
172
178
  text: இந்தப் பக்கத்தை அச்செடு
173
179
  published_dates:
@@ -13,6 +13,12 @@ th:
13
13
  hide_all: ซ่อนทุกส่วน
14
14
  show_all: แสดงส่วนทั้งหมด
15
15
  this_section_visually_hidden: " ส่วนนี้"
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: ค้นหาใน %{title}
18
24
  attachment:
@@ -152,6 +158,10 @@ th:
152
158
  selected:
153
159
  organisation_schema:
154
160
  all_content_search_description: ค้นหาเนื้อหาทั้งหมดจาก %{organisation}
161
+ pagination:
162
+ next:
163
+ pagination: การแบ่งหน้า
164
+ previous:
155
165
  password_input:
156
166
  button:
157
167
  button_aria_hide_label:
@@ -161,10 +171,6 @@ th:
161
171
  label:
162
172
  password_hidden_announcement:
163
173
  password_shown_announcement:
164
- pagination:
165
- next:
166
- pagination: การแบ่งหน้า
167
- previous:
168
174
  print_link:
169
175
  text: พิมพ์หน้านี้
170
176
  published_dates:
@@ -13,6 +13,12 @@ ti:
13
13
  hide_all: ኩሉ ክፍልታት ሕባእ
14
14
  show_all: ኩሉ ክፍልታት ኣርኢ
15
15
  this_section_visually_hidden: እዚ ክፍሊ እዚ
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: ኣብ ውሽጢ %{title} ድለ
18
24
  attachment:
@@ -153,6 +159,10 @@ ti:
153
159
  selected: ተመሪጹ
154
160
  organisation_schema:
155
161
  all_content_search_description: ኩሉ ትሕዝቶ ካብ %{organisation} ርኸብ
162
+ pagination:
163
+ next: ዝቅጽል
164
+ pagination: ገጻት ምግባር
165
+ previous: ዝሓለፈ
156
166
  password_input:
157
167
  button: ኣርኢ
158
168
  button_aria_hide_label: መሕለፊ ቓል/ፓስዎርድ ሕባእ
@@ -162,10 +172,6 @@ ti:
162
172
  label: መሕለፊ ቓል/ፓስዎርድ
163
173
  password_hidden_announcement: መሕለፊ ቓል/ፓስዎርድካ ተሓቢኡ ኣሎ
164
174
  password_shown_announcement: መሕለፊ ቓል/ፓስዎርድካ ይርአ ኣሎ
165
- pagination:
166
- next: ዝቅጽል
167
- pagination: ገጻት ምግባር
168
- previous: ዝሓለፈ
169
175
  print_link:
170
176
  text: ነዚ ገጽ ሕተሞ
171
177
  published_dates:
@@ -13,6 +13,12 @@ tk:
13
13
  hide_all: Ähli bölümleri gizle
14
14
  show_all: Ähli bölümleri görkez
15
15
  this_section_visually_hidden: " Bu bölüm"
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: "%{title} bilen gözle"
18
24
  attachment:
@@ -155,6 +161,10 @@ tk:
155
161
  selected:
156
162
  organisation_schema:
157
163
  all_content_search_description: Ähli mazmunyny %{organisation}-dan tapyň
164
+ pagination:
165
+ next:
166
+ pagination: Sahypa
167
+ previous:
158
168
  password_input:
159
169
  button:
160
170
  button_aria_hide_label:
@@ -164,10 +174,6 @@ tk:
164
174
  label:
165
175
  password_hidden_announcement:
166
176
  password_shown_announcement:
167
- pagination:
168
- next:
169
- pagination: Sahypa
170
- previous:
171
177
  print_link:
172
178
  text: Bu sahypany çap et
173
179
  published_dates:
@@ -13,6 +13,12 @@ tr:
13
13
  hide_all: Tüm bölümleri gizle
14
14
  show_all: Tüm bölümleri göster
15
15
  this_section_visually_hidden: " Bu bölüm"
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: "%{title} içerisinde arama yap"
18
24
  attachment:
@@ -155,6 +161,10 @@ tr:
155
161
  selected:
156
162
  organisation_schema:
157
163
  all_content_search_description: "%{organisation} kaynaklı tüm içeriği bul"
164
+ pagination:
165
+ next:
166
+ pagination: Sayfa
167
+ previous:
158
168
  password_input:
159
169
  button:
160
170
  button_aria_hide_label:
@@ -164,10 +174,6 @@ tr:
164
174
  label:
165
175
  password_hidden_announcement:
166
176
  password_shown_announcement:
167
- pagination:
168
- next:
169
- pagination: Sayfa
170
- previous:
171
177
  print_link:
172
178
  text: Bu sayfayı yazdır
173
179
  published_dates:
@@ -13,6 +13,12 @@ uk:
13
13
  hide_all: приховати всі розділи
14
14
  show_all: Показати всі розділи
15
15
  this_section_visually_hidden: " цей розділ"
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: Шукати в %{title}
18
24
  attachment:
@@ -161,6 +167,10 @@ uk:
161
167
  selected:
162
168
  organisation_schema:
163
169
  all_content_search_description: Знайти весь вміст від %{organization}
170
+ pagination:
171
+ next:
172
+ pagination: Поділ на сторінки
173
+ previous:
164
174
  password_input:
165
175
  button:
166
176
  button_aria_hide_label:
@@ -170,10 +180,6 @@ uk:
170
180
  label:
171
181
  password_hidden_announcement:
172
182
  password_shown_announcement:
173
- pagination:
174
- next:
175
- pagination: Поділ на сторінки
176
- previous:
177
183
  print_link:
178
184
  text: Роздрукувати цю сторінку
179
185
  published_dates:
@@ -13,6 +13,12 @@ ur:
13
13
  hide_all: تمام سیکشنز کو پوشیدہ کریں
14
14
  show_all: تمام سیکشنز دکھائیں
15
15
  this_section_visually_hidden: " یہ سیکشن"
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: "%{title} کے اندر تلاش کریں"
18
24
  attachment:
@@ -151,6 +157,10 @@ ur:
151
157
  selected:
152
158
  organisation_schema:
153
159
  all_content_search_description: "%{organisation} کا تمام مواد تلاش کریں"
160
+ pagination:
161
+ next:
162
+ pagination: صفحہ بندی
163
+ previous:
154
164
  password_input:
155
165
  button:
156
166
  button_aria_hide_label:
@@ -160,10 +170,6 @@ ur:
160
170
  label:
161
171
  password_hidden_announcement:
162
172
  password_shown_announcement:
163
- pagination:
164
- next:
165
- pagination: صفحہ بندی
166
- previous:
167
173
  print_link:
168
174
  text: اس صفحے کا پرنٹ لیں
169
175
  published_dates:
@@ -13,6 +13,12 @@ uz:
13
13
  hide_all: Бўлимларни барчасини яшириш
14
14
  show_all: Бўлимларни барчасини кўрсатиш
15
15
  this_section_visually_hidden: " ушбу бўлим"
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: "%{title} да излаш"
18
24
  attachment:
@@ -156,6 +162,10 @@ uz:
156
162
  selected:
157
163
  organisation_schema:
158
164
  all_content_search_description: "%{organization} дан бутун контентни топиш"
165
+ pagination:
166
+ next:
167
+ pagination: Саҳифаларнинг рақамланиши
168
+ previous:
159
169
  password_input:
160
170
  button:
161
171
  button_aria_hide_label:
@@ -165,10 +175,6 @@ uz:
165
175
  label:
166
176
  password_hidden_announcement:
167
177
  password_shown_announcement:
168
- pagination:
169
- next:
170
- pagination: Саҳифаларнинг рақамланиши
171
- previous:
172
178
  print_link:
173
179
  text: Ушбу саҳифани чоп этиш
174
180
  published_dates:
@@ -13,6 +13,12 @@ vi:
13
13
  hide_all: Ẩn tất cả các phần
14
14
  show_all: Hiển thị tất cả các phần
15
15
  this_section_visually_hidden: " phần này"
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: Tìm kiếm trong %{title}
18
24
  attachment:
@@ -153,6 +159,10 @@ vi:
153
159
  selected:
154
160
  organisation_schema:
155
161
  all_content_search_description: Tìm tất cả nội dung từ %{organisation}
162
+ pagination:
163
+ next:
164
+ pagination: Phân trang
165
+ previous:
156
166
  password_input:
157
167
  button:
158
168
  button_aria_hide_label:
@@ -162,10 +172,6 @@ vi:
162
172
  label:
163
173
  password_hidden_announcement:
164
174
  password_shown_announcement:
165
- pagination:
166
- next:
167
- pagination: Phân trang
168
- previous:
169
175
  print_link:
170
176
  text: In trang này
171
177
  published_dates:
@@ -13,6 +13,12 @@ zh-hk:
13
13
  hide_all: 隱藏所有部份
14
14
  show_all: 顯示所有部份
15
15
  this_section_visually_hidden: 此部份
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: 在 %{title} 搜尋
18
24
  attachment:
@@ -152,6 +158,10 @@ zh-hk:
152
158
  selected:
153
159
  organisation_schema:
154
160
  all_content_search_description: 從 %{organisation} 獲得更多內容
161
+ pagination:
162
+ next:
163
+ pagination: 分頁
164
+ previous:
155
165
  password_input:
156
166
  button:
157
167
  button_aria_hide_label:
@@ -161,10 +171,6 @@ zh-hk:
161
171
  label:
162
172
  password_hidden_announcement:
163
173
  password_shown_announcement:
164
- pagination:
165
- next:
166
- pagination: 分頁
167
- previous:
168
174
  print_link:
169
175
  text: 列印本頁面
170
176
  published_dates:
@@ -13,6 +13,12 @@ zh-tw:
13
13
  hide_all: 隱藏所有區段
14
14
  show_all: 展開所有區段
15
15
  this_section_visually_hidden: " 這個區段"
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: 在 %{title} 內搜索
18
24
  attachment:
@@ -152,6 +158,10 @@ zh-tw:
152
158
  selected:
153
159
  organisation_schema:
154
160
  all_content_search_description: 從 %{organisation} 找到所有內容
161
+ pagination:
162
+ next:
163
+ pagination: 分頁
164
+ previous:
155
165
  password_input:
156
166
  button:
157
167
  button_aria_hide_label:
@@ -161,10 +171,6 @@ zh-tw:
161
171
  label:
162
172
  password_hidden_announcement:
163
173
  password_shown_announcement:
164
- pagination:
165
- next:
166
- pagination: 分頁
167
- previous:
168
174
  print_link:
169
175
  text: 列印此頁面
170
176
  published_dates:
@@ -13,6 +13,12 @@ zh:
13
13
  hide_all: 隐藏所有小节
14
14
  show_all: 显示所有小节
15
15
  this_section_visually_hidden: " 本小节"
16
+ app_promo_banner:
17
+ aria_label:
18
+ body_text:
19
+ close:
20
+ title_text:
21
+ view:
16
22
  article_schema:
17
23
  scoped_search_description: 在 %{title} 内搜索
18
24
  attachment:
@@ -152,6 +158,10 @@ zh:
152
158
  selected:
153
159
  organisation_schema:
154
160
  all_content_search_description: 查找 %{organisation} 的全部内容
161
+ pagination:
162
+ next:
163
+ pagination: 分页
164
+ previous:
155
165
  password_input:
156
166
  button:
157
167
  button_aria_hide_label:
@@ -161,10 +171,6 @@ zh:
161
171
  label:
162
172
  password_hidden_announcement:
163
173
  password_shown_announcement:
164
- pagination:
165
- next:
166
- pagination: 分页
167
- previous:
168
174
  print_link:
169
175
  text: 打印本页面
170
176
  published_dates:
@@ -10,32 +10,6 @@ module GovukPublishingComponents
10
10
  "govuk_publishing_components/components/_#{component_name}.css"
11
11
  }.freeze
12
12
 
13
- # This list includes components already included in Static; taken from
14
- # https://github.com/alphagov/static/blob/198a598682df40ce4a2c3c286c06244297c18cf0/app/assets/stylesheets/application.scss
15
-
16
- # This is used to dedupe stylesheets.
17
- STATIC_STYLESHEET_LIST = %w[
18
- breadcrumbs
19
- button
20
- error-message
21
- heading
22
- hint
23
- input
24
- label
25
- search
26
- search-with-autocomplete
27
- skip-link
28
- textarea
29
- title
30
- cookie-banner
31
- cross-service-header
32
- feedback
33
- layout-footer
34
- layout-for-public
35
- layout-header
36
- layout-super-navigation-header
37
- ].freeze
38
-
39
13
  def add_stylesheet_path(component_path)
40
14
  unless is_already_used?(component_path)
41
15
  all_component_stylesheets_being_used << component_path
@@ -86,7 +60,6 @@ module GovukPublishingComponents
86
60
  def css_exclude_list
87
61
  return [] if viewing_component_guide?
88
62
  return GovukPublishingComponents::Config.custom_css_exclude_list if GovukPublishingComponents::Config.custom_css_exclude_list&.any?
89
- return STATIC_STYLESHEET_LIST if GovukPublishingComponents::Config.exclude_css_from_static
90
63
 
91
64
  []
92
65
  end
@@ -4,40 +4,44 @@ module GovukPublishingComponents
4
4
  include ActionView::Helpers
5
5
  include ActionView::Context
6
6
 
7
- attr_reader :name, :url, :crest, :image, :logo_image_src, :logo_image_alt, :hide_underline
8
-
9
7
  def initialize(local_assigns)
8
+ raise(ArgumentError, "Component requires an organisation including a name") unless minimum_for_component?(local_assigns)
9
+
10
10
  @name = local_assigns[:organisation][:name]
11
11
  @url = local_assigns[:organisation][:url]
12
12
  @crest = local_assigns[:organisation][:crest]
13
13
  @image = local_assigns[:organisation][:image] || false
14
14
  if @image
15
- @logo_image_src = local_assigns[:organisation][:image][:url] || false
16
- @logo_image_alt = local_assigns[:organisation][:image][:alt_text] || false
15
+ @logo_image_src = local_assigns[:organisation][:image][:url] || nil
16
+ @logo_image_alt = local_assigns[:organisation][:image][:alt_text] || nil
17
17
  end
18
18
  @hide_underline = local_assigns[:hide_underline] || false
19
19
  end
20
20
 
21
21
  def logo_content
22
- if image
23
- image_tag(logo_image_src, alt: logo_image_alt, class: "gem-c-organisation-logo__image")
22
+ if @image
23
+ image_tag(@logo_image_src, alt: @logo_image_alt, class: "gem-c-organisation-logo__image")
24
24
  else
25
- content_tag("span", name, class: "gem-c-organisation-logo__name")
25
+ content_tag("span", @name, class: "gem-c-organisation-logo__name")
26
26
  end
27
27
  end
28
28
 
29
29
  def logo_container_class
30
- logo_class = "gem-c-organisation-logo__container"
31
- logo_class = "#{logo_class} gem-c-organisation-logo__link" if url
32
- logo_class = "#{logo_class} gem-c-organisation-logo__link-hide-underline" if hide_underline
33
- logo_class = "#{logo_class} gem-c-organisation-logo__crest gem-c-organisation-logo__crest--#{crest}" if crest_has_visual_identity?
34
- logo_class
30
+ logo_class = %w[gem-c-organisation-logo__container]
31
+ logo_class << "gem-c-organisation-logo__link" if @url
32
+ logo_class << "gem-c-organisation-logo__link-hide-underline" if @hide_underline
33
+ logo_class << "gem-c-organisation-logo__crest gem-c-organisation-logo__crest--#{@crest}" if crest_has_visual_identity?
34
+ logo_class.join(" ")
35
35
  end
36
36
 
37
37
  private
38
38
 
39
+ def minimum_for_component?(options)
40
+ true unless !options[:organisation] || options[:organisation] && !options[:organisation][:name]
41
+ end
42
+
39
43
  def crest_has_visual_identity?
40
- crest.present? && !%w[no-identity custom].include?(crest)
44
+ @crest.present? && !%w[no-identity custom].include?(@crest)
41
45
  end
42
46
  end
43
47
  end
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "63.1.2".freeze
2
+ VERSION = "63.3.0".freeze
3
3
  end
@@ -386,8 +386,10 @@ declare namespace axe {
386
386
  frameContext: FrameContextObject;
387
387
  }
388
388
 
389
- interface RawCheckResult
390
- extends Omit<CheckResult, 'relatedNodes' | 'impact'> {
389
+ interface RawCheckResult extends Omit<
390
+ CheckResult,
391
+ 'relatedNodes' | 'impact'
392
+ > {
391
393
  relatedNodes?: Array<SerialDqElement | DqElement>;
392
394
  impact?: ImpactValue;
393
395
  }