govuk_publishing_components 9.9.1 → 9.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +0 -12
- data/app/views/govuk_publishing_components/components/_govspeak.html.erb +0 -2
- data/app/views/govuk_publishing_components/components/_govspeak_html_publication.html.erb +0 -1
- data/app/views/govuk_publishing_components/components/docs/govspeak.yml +0 -5
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f01f7935c466b9be9bf558687ed73647b5f5f4342f60dee61fb6e8970e4307d
|
4
|
+
data.tar.gz: 05ae304988442c6c4abebf89afd8eb0b444e59beb4dac9a8bb2e94b624a6b265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9770ac9a1420f0d74aa990a711d619e775d4ad3028e3b088b33b1db4db2575cc19680b5c42ed7a7993a4a2033beb327ea5195c3cc09d17d0dab6484c249279c1
|
7
|
+
data.tar.gz: df00c0b87c629cc4176d35649b069bdcbca2c39be8a96836794441c4f4ebc7519d65955bba02f1b6721fa5ddd814d32de79b3daf29c25b0cabac99c8c2856973
|
data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss
CHANGED
@@ -186,18 +186,6 @@
|
|
186
186
|
|
187
187
|
// Text styles
|
188
188
|
|
189
|
-
strong {
|
190
|
-
font-weight: 400;
|
191
|
-
}
|
192
|
-
|
193
|
-
// rich-govspeak is a modifier for the govspeak component
|
194
|
-
// that allows bold text. Used by the highway code manual.
|
195
|
-
&.rich-govspeak {
|
196
|
-
strong {
|
197
|
-
font-weight: bold;
|
198
|
-
}
|
199
|
-
}
|
200
|
-
|
201
189
|
em,
|
202
190
|
i {
|
203
191
|
font-style: normal;
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<%
|
2
2
|
direction_class = "direction-#{direction}" if local_assigns.include?(:direction)
|
3
|
-
rich_govspeak = local_assigns.fetch(:rich_govspeak) if local_assigns.include?(:rich_govspeak)
|
4
3
|
disable_youtube_expansions = local_assigns.fetch(:disable_youtube_expansions) if local_assigns.include?(:disable_youtube_expansions)
|
5
4
|
|
6
5
|
classes = []
|
7
6
|
classes << direction_class if direction_class
|
8
|
-
classes << "rich-govspeak" if rich_govspeak
|
9
7
|
classes << "disable-youtube" if disable_youtube_expansions
|
10
8
|
%>
|
11
9
|
|
@@ -2,7 +2,6 @@
|
|
2
2
|
govspeak_locals = {}
|
3
3
|
govspeak_locals[:content] = local_assigns.fetch(:content) if local_assigns.include?(:content)
|
4
4
|
govspeak_locals[:direction] = local_assigns.fetch(:direction) if local_assigns.include?(:direction)
|
5
|
-
govspeak_locals[:rich_govspeak] = local_assigns.fetch(:rich_govspeak) if local_assigns.include?(:rich_govspeak)
|
6
5
|
govspeak_locals[:disable_youtube_expansions] = local_assigns.fetch(:disable_youtube_expansions) if local_assigns.include?(:disable_youtube_expansions)
|
7
6
|
%>
|
8
7
|
<div class="gem-c-govspeak-html-publication">
|
@@ -283,11 +283,6 @@ examples:
|
|
283
283
|
data:
|
284
284
|
block: |
|
285
285
|
<p>This content has <strong>text in strong tags</strong>, but they are not styled as bold</p>
|
286
|
-
with_rich_govspeak:
|
287
|
-
data:
|
288
|
-
rich_govspeak: true
|
289
|
-
block: |
|
290
|
-
<p>This content uses rich govspeak and has <strong>text in strong tags</strong> that are styled as bold</p>
|
291
286
|
with_youtube_embed:
|
292
287
|
data:
|
293
288
|
block: |
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|