rails_onboarding 0.7.1 → 0.7.2

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: 1ac648ef8f4bb783aa4c15e67e84fbeb68748f67f1565b9c6aaae498b21be94c
4
- data.tar.gz: 827307fd65da0a3caf06805f2bd0024ad667e0730de7bdd22812b832ce86c9c4
3
+ metadata.gz: '02148dd5e0d60a6d6ac13ba3836f0643dd29e35021d42c7fde9253ee79d041f3'
4
+ data.tar.gz: e7432a5a0f8ba216053bb1a465a7a66daf705db75c408942c90879e112a2b77b
5
5
  SHA512:
6
- metadata.gz: 95e7d0b6d87d82b2cabdc1bed8ef7dbc33985bb35746f56b980e641ee6067fdc18082ce206f65e9506c614094bf4f374ed0ef999383025ee217d45356e206e36
7
- data.tar.gz: cad8d3c274a9ec9db074edc1df5c60d0da753398af937c0f5fb50d3fd89ab9241e6e590dc86aa761c22597892ae585be7f6a2624f2a504c8a31df57447ab1e99
6
+ metadata.gz: 1034bcf0f0e15a1f7a7b12b1bf246d182fba115bbf2ea04410e70aaedd80879911ea0a774ea194188b0ac6f4e834a381df307ab3b7cb05521fd26f52fe56cef3
7
+ data.tar.gz: 804e5be1c12dff7c2d218d2b08dc5b15f7850aeaae2c4073a96411174fc87e3008df2712650c834ca5af4cdcd88bcd5accda653a68b3e2a6c0934ec649a0e492
@@ -446,15 +446,24 @@
446
446
  outline: none;
447
447
  }
448
448
 
449
- /* Enhanced input validation states */
450
- :where(.onboarding-container) input:invalid,
449
+ /* Enhanced input validation states.
450
+ *
451
+ * Restricted to controls the user actually types into. `input` on its own also
452
+ * matches buttons, and a submit button is permanently :valid and never shows a
453
+ * placeholder - so `input:valid:not(:placeholder-shown)` painted every
454
+ * "Let's Get Started" and "Continue" button with the success border, over the
455
+ * primary-coloured border .primary-action sets. Checkboxes, radios, files,
456
+ * ranges and colour wells are excluded too: their borders are not rendered by
457
+ * the native control anyway, so validity styling on them is invisible at best
458
+ * and misleading at worst. */
459
+ :where(.onboarding-container) input:not([type="submit"], [type="button"], [type="reset"], [type="image"], [type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]):invalid,
451
460
  :where(.onboarding-container) select:invalid,
452
461
  :where(.onboarding-container) textarea:invalid {
453
462
  border-color: var(--onboarding-danger);
454
463
  box-shadow: inset 0 1px 2px rgba(239, 68, 68, 0.1);
455
464
  }
456
465
 
457
- :where(.onboarding-container) input:valid:not(:placeholder-shown),
466
+ :where(.onboarding-container) input:not([type="submit"], [type="button"], [type="reset"], [type="image"], [type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]):valid:not(:placeholder-shown),
458
467
  :where(.onboarding-container) select:valid,
459
468
  :where(.onboarding-container) textarea:valid:not(:placeholder-shown) {
460
469
  border-color: var(--onboarding-success);
@@ -1,3 +1,3 @@
1
1
  module RailsOnboarding
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_onboarding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lewis
@@ -282,7 +282,7 @@ licenses:
282
282
  metadata:
283
283
  allowed_push_host: https://rubygems.org
284
284
  homepage_uri: https://github.com/bunnahabhain/rails_onboarding
285
- source_code_uri: https://github.com/bunnahabhain/rails_onboarding/tree/v0.7.1
285
+ source_code_uri: https://github.com/bunnahabhain/rails_onboarding/tree/v0.7.2
286
286
  changelog_uri: https://github.com/bunnahabhain/rails_onboarding/blob/master/docs/CHANGELOG.md
287
287
  rdoc_options: []
288
288
  require_paths: