uswds-rails 1.5.0 → 1.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fbaff9d482c69c79a020a5f663a6bae2aa4693785cb25e9e3a0a0f3bd8978c4
4
- data.tar.gz: 8b02dc1a8835a6bf0a09fcd78d507a0d76c10d49bd15749b14c5710eef1848e5
3
+ metadata.gz: 996f2906b6efb5624e87a03a115665e2171b83cac3a6b2a550fb4d7c3de2cc1b
4
+ data.tar.gz: b2f7597e4539639c5ae02c6b1dbcb940c87ef83e1c06a994c5d1cb8df6ae3443
5
5
  SHA512:
6
- metadata.gz: 99b1ac77581309ac91f5afdb74c89519c0c1e1fa372653c69b467cc1993cf1925a3255e61c9bd12186741a4ff1b3dd45db61521a093828a1aab1d5eeb1a5e4a1
7
- data.tar.gz: bfbf09f6c5b7a73917c082491b01a4cb21595113d1c9168724ac4f8565932e43ddf00f62e6dd243351b67f02ab397610fe9779111207bf0efe43e67df8360d7c
6
+ metadata.gz: d5dbcba5f8b9beef4c2f403d03b0e1819fe52384207a10dcb1002e57dc038f81116908d5780261a6535f7845198f8a4844261e2789ca94672385ef082a74a486
7
+ data.tar.gz: 9c61e69c55db1ac1bf79e8ab8cd1d06f805c1cf378a69ba560bfc562207bf427ed029fb7814c377f580057b7c5f0225991b1b7b94ae163ec38fb5a627b932319
@@ -86,16 +86,28 @@ select {
86
86
  padding-top: 3px;
87
87
  }
88
88
 
89
+ // Deprecated: Some screen readers can't read CSS content.
90
+ // Will be removed in 2.0.
89
91
  .usa-input-required:after {
90
92
  color: $color-secondary-darkest;
91
93
  content: ' (*required)';
92
94
  }
93
95
 
96
+ // Deprecated: Some screen readers can't read CSS content.
97
+ // Will be removed in 2.0.
94
98
  .usa-input-optional:after {
95
99
  color: $color-gray-medium;
96
100
  content: ' (optional)';
97
101
  }
98
102
 
103
+ .usa-input-label-helper {
104
+ color: $color-gray-medium;
105
+ }
106
+
107
+ .usa-input-label-required {
108
+ color: $color-secondary-darkest;
109
+ }
110
+
99
111
  label {
100
112
  display: block;
101
113
  margin-top: 3rem;
@@ -1,4 +1,4 @@
1
- /*! uswds 1.5.0 */
1
+ /*! uswds 1.6.0 */
2
2
 
3
3
  // Relative font and image file paths
4
4
  $font-path: 'uswds';
@@ -1,5 +1,5 @@
1
1
  module Uswds
2
2
  module Rails
3
- VERSION = '1.5.0'.freeze
3
+ VERSION = '1.6.0'.freeze
4
4
  end
5
5
  end
@@ -120,9 +120,12 @@ $small: new-breakpoint(min-width $small-screen $grid-columns-small) !default;
120
120
  $medium: new-breakpoint(min-width $medium-screen $grid-columns-medium) !default;
121
121
  $large: new-breakpoint(min-width $large-screen $grid-columns-large) !default;
122
122
 
123
+ // Set the base path for assets (used for font and image paths below)
124
+ $asset-path: '../' !default;
125
+
123
126
  // Relative font and image file paths
124
- $font-path: '../fonts' !default;
125
- $image-path: '../img' !default;
127
+ $font-path: '#{$asset-path}fonts' !default;
128
+ $image-path: '#{$asset-path}img' !default;
126
129
 
127
130
  // Set $asset-pipeline to true if you're using the Rails Asset Pipeline
128
131
  $asset-pipeline: false !default;
@@ -86,16 +86,28 @@ select {
86
86
  padding-top: 3px;
87
87
  }
88
88
 
89
+ // Deprecated: Some screen readers can't read CSS content.
90
+ // Will be removed in 2.0.
89
91
  .usa-input-required:after {
90
92
  color: $color-secondary-darkest;
91
93
  content: ' (*required)';
92
94
  }
93
95
 
96
+ // Deprecated: Some screen readers can't read CSS content.
97
+ // Will be removed in 2.0.
94
98
  .usa-input-optional:after {
95
99
  color: $color-gray-medium;
96
100
  content: ' (optional)';
97
101
  }
98
102
 
103
+ .usa-input-label-helper {
104
+ color: $color-gray-medium;
105
+ }
106
+
107
+ .usa-input-label-required {
108
+ color: $color-secondary-darkest;
109
+ }
110
+
99
111
  label {
100
112
  display: block;
101
113
  margin-top: 3rem;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uswds-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Garber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-27 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler