@popsure/dirty-swan 0.27.28 → 0.27.29

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.
@@ -1,3 +1,15 @@
1
1
  @function url-encoded-color($color) {
2
2
  @return '%23' + str-slice('#{$color}', 2, -1);
3
3
  }
4
+
5
+ .sr-only {
6
+ border-width: 0;
7
+ clip: rect(0, 0, 0, 0);
8
+ height: 1px;
9
+ margin: -1px;
10
+ overflow: hidden;
11
+ padding: 0;
12
+ position: absolute;
13
+ white-space: nowrap;
14
+ width: 1px;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popsure/dirty-swan",
3
- "version": "0.27.28",
3
+ "version": "0.27.29",
4
4
  "author": "Vincent Audoire <vincent@getpopsure.com>",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -27,5 +27,7 @@ The following will be done:
27
27
  <CurrencyInput className="wmx5 mt8" label="Amount" placeholder="100" />
28
28
  <h4 className="p-h4 mt24">With label and no placeholder</h4>
29
29
  <CurrencyInput className="wmx5 mt8" label="Amount" />
30
+ <h4 className="p-h4 mt24">With placeholder and no label</h4>
31
+ <CurrencyInput className="wmx5 mt8" hideLabel label="Amount" placeholder="0" />
30
32
  </>
31
33
  </Preview>
@@ -40,7 +40,7 @@ export default React.forwardRef(
40
40
  htmlFor={uniqueId}
41
41
  className={classnames('p-p', styles.label, {
42
42
  [styles['label--with-error']]: error,
43
- [styles['label--hidden']]: hideLabel,
43
+ "sr-only": hideLabel,
44
44
  })}
45
45
  >
46
46
  {label}
@@ -101,12 +101,6 @@
101
101
  &--with-error {
102
102
  color: var(--ds-red-500);
103
103
  }
104
-
105
- &--hidden {
106
- visibility: hidden;
107
- height: 0;
108
- margin: 0;
109
- }
110
104
  }
111
105
 
112
106
  .error {
@@ -1,3 +1,15 @@
1
1
  @function url-encoded-color($color) {
2
2
  @return '%23' + str-slice('#{$color}', 2, -1);
3
3
  }
4
+
5
+ .sr-only {
6
+ border-width: 0;
7
+ clip: rect(0, 0, 0, 0);
8
+ height: 1px;
9
+ margin: -1px;
10
+ overflow: hidden;
11
+ padding: 0;
12
+ position: absolute;
13
+ white-space: nowrap;
14
+ width: 1px;
15
+ }