@foris/avocado-core 1.3.4 → 1.3.5

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.
@@ -35,6 +35,17 @@
35
35
  0 0 0 5px map-get($colors, darwined-blue-30);
36
36
  }
37
37
 
38
+ // Hidden from view, still focusable and announced by screen readers
39
+ @mixin visually-hidden {
40
+ border: 0;
41
+ clip-path: inset(50%);
42
+ height: 1px;
43
+ overflow: hidden;
44
+ position: absolute;
45
+ white-space: nowrap;
46
+ width: 1px;
47
+ }
48
+
38
49
  // Mixins using css vars
39
50
  @mixin box-style($bg, $radius, $border: none) {
40
51
  @if ($bg == transparent) {
@@ -61,10 +72,11 @@
61
72
  border-radius: 8px;
62
73
  outline: none;
63
74
 
75
+ // `dark` is a dark surface in either theme, so its colors stay fixed
64
76
  @if $theme == 'dark' {
65
- box-shadow: 0 0 0 3px var(--color-gray-90), 0 0 0 5px var(--color-info-30);
77
+ box-shadow: 0 0 0 3px var(--color-gray-90), 0 0 0 5px var(--color-blue-10);
66
78
  } @else {
67
79
  box-shadow: 0 0 0 3px var(--color-neutral-00),
68
- 0 0 0 5px var(--color-info-30);
80
+ 0 0 0 5px var(--color-info-60);
69
81
  }
70
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foris/avocado-core",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },