barbican-reset 1.7.8 → 1.7.9

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.
@@ -313,7 +313,7 @@
313
313
  }
314
314
 
315
315
  label {
316
- visibility: hidden;
316
+ @include sr-only;
317
317
  }
318
318
  }
319
319
 
@@ -11,6 +11,14 @@
11
11
  color: $white;
12
12
  }
13
13
 
14
+ @mixin table-label($mq:md) {
15
+ font-size: $font-size-lg;
16
+
17
+ @include media-breakpoint-up($mq) {
18
+ @include sr-only;
19
+ }
20
+ }
21
+
14
22
  @mixin default-table-style {
15
23
  th, td {
16
24
  @include media-breakpoint-up(md) {
@@ -6,6 +6,17 @@
6
6
  top: $val;
7
7
  }
8
8
 
9
+ @mixin sr-only {
10
+ clip: rect(0,0,0,0);
11
+ position: absolute;
12
+ overflow: hidden;
13
+ margin: -1px;
14
+ height: 1px;
15
+ padding: 0;
16
+ width: 1px;
17
+ border: 0;
18
+ }
19
+
9
20
  @import "br-alert";
10
21
  @import "br-form-row";
11
22
  @import "br-form-update";
@@ -20,7 +31,6 @@
20
31
  @import "festival";
21
32
  @import "focus";
22
33
  @import "font";
23
- @import "hide";
24
34
  @import "loading";
25
35
  @import "input";
26
36
  @import "table";
@@ -52,10 +52,6 @@
52
52
  }
53
53
 
54
54
  label {
55
- font-size: $font-size-lg;
56
-
57
- @include media-breakpoint-up($mq) {
58
- display: none;
59
- }
55
+ @include table-label($mq);
60
56
  }
61
57
  }
@@ -45,11 +45,7 @@
45
45
  }
46
46
 
47
47
  label {
48
- font-size: $font-size-lg;
49
-
50
- @include media-breakpoint-up($mq) {
51
- display: none;
52
- }
48
+ @include table-label($mq);
53
49
  }
54
50
 
55
51
  a {
@@ -20,7 +20,7 @@
20
20
  gap: 0.75rem;
21
21
 
22
22
  label {
23
- display: none;
23
+ @include sr-only;
24
24
  }
25
25
  }
26
26
 
@@ -41,11 +41,7 @@
41
41
  }
42
42
 
43
43
  label {
44
- font-size: $font-size-lg;
45
-
46
- @include media-breakpoint-up($mq) {
47
- display: none;
48
- }
44
+ @include table-label($mq);
49
45
  }
50
46
 
51
47
  a {
@@ -53,11 +53,7 @@
53
53
  }
54
54
 
55
55
  label {
56
- font-size: $font-size-lg;
57
-
58
- @include media-breakpoint-up($mq) {
59
- display: none;
60
- }
56
+ @include table-label($mq);
61
57
  }
62
58
 
63
59
  .custom-radio {
@@ -22,10 +22,6 @@
22
22
  }
23
23
 
24
24
  label {
25
- font-size: $font-size-lg;
26
-
27
- @include media-breakpoint-up($mq) {
28
- display: none;
29
- }
25
+ @include table-label($mq);
30
26
  }
31
27
  }
@@ -14,7 +14,7 @@
14
14
  gap: 0.75rem;
15
15
 
16
16
  label {
17
- display: none;
17
+ @include sr-only;
18
18
  }
19
19
  }
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  z-index: 1;
10
10
 
11
11
  + label {
12
- display: none;
12
+ @include sr-only;
13
13
  }
14
14
  }
15
15
 
@@ -1,27 +0,0 @@
1
-
2
- @mixin hide-visually($state:"hide") {
3
- @if $state == "hide" {
4
- clip: rect(1px, 1px, 1px, 1px);
5
- clip-path: inset(100%);
6
- position: absolute;
7
- overflow: hidden;
8
- height: 1px;
9
- padding: 0;
10
- width: 1px;
11
- border: 0;
12
- }
13
- @if $state == "unhide" {
14
- overflow: visible;
15
- position: static;
16
- clip-path: none;
17
- height: auto;
18
- width: auto;
19
- clip: auto;
20
- }
21
- }
22
-
23
- @mixin hide-text {
24
- white-space: nowrap;
25
- text-indent: 101%;
26
- overflow: hidden;
27
- }