@transferwise/components 46.157.0 → 46.157.1

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.
package/build/main.css CHANGED
@@ -34202,10 +34202,24 @@ html:not([dir="rtl"]) .np-navigation-option {
34202
34202
  .typeahead .dropdown-menu {
34203
34203
  max-width: 100%;
34204
34204
  width: 100%;
34205
+ margin-top: 8px;
34206
+ margin-top: var(--size-8);
34205
34207
  scroll-padding-top: 8px;
34206
34208
  scroll-padding-top: var(--size-8);
34207
34209
  scroll-padding-bottom: 8px;
34208
34210
  scroll-padding-bottom: var(--size-8);
34211
+ --ring-outline-offset: calc(-1 * var(--ring-outline-width));
34212
+ }
34213
+
34214
+ .typeahead .dropdown-menu:focus {
34215
+ outline: none;
34216
+ }
34217
+
34218
+ .typeahead .dropdown-menu:focus-visible {
34219
+ outline: #37517e solid 2px;
34220
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
34221
+ outline-offset: 2px;
34222
+ outline-offset: var(--ring-outline-offset);
34209
34223
  }
34210
34224
 
34211
34225
  .np-theme-personal--forest-green .typeahead .dropdown-menu,
@@ -7,10 +7,20 @@
7
7
  .typeahead .dropdown-menu {
8
8
  max-width: 100%;
9
9
  width: 100%;
10
+ margin-top: 8px;
11
+ margin-top: var(--size-8);
10
12
  scroll-padding-top: 8px;
11
13
  scroll-padding-top: var(--size-8);
12
14
  scroll-padding-bottom: 8px;
13
15
  scroll-padding-bottom: var(--size-8);
16
+ --ring-outline-offset: calc(-1 * var(--ring-outline-width));
17
+ }
18
+ .typeahead .dropdown-menu:focus {
19
+ outline: none;
20
+ }
21
+ .typeahead .dropdown-menu:focus-visible {
22
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
23
+ outline-offset: var(--ring-outline-offset);
14
24
  }
15
25
  .np-theme-personal--forest-green .typeahead .dropdown-menu,
16
26
  .np-theme-personal--bright-green .typeahead .dropdown-menu,
@@ -34202,10 +34202,24 @@ html:not([dir="rtl"]) .np-navigation-option {
34202
34202
  .typeahead .dropdown-menu {
34203
34203
  max-width: 100%;
34204
34204
  width: 100%;
34205
+ margin-top: 8px;
34206
+ margin-top: var(--size-8);
34205
34207
  scroll-padding-top: 8px;
34206
34208
  scroll-padding-top: var(--size-8);
34207
34209
  scroll-padding-bottom: 8px;
34208
34210
  scroll-padding-bottom: var(--size-8);
34211
+ --ring-outline-offset: calc(-1 * var(--ring-outline-width));
34212
+ }
34213
+
34214
+ .typeahead .dropdown-menu:focus {
34215
+ outline: none;
34216
+ }
34217
+
34218
+ .typeahead .dropdown-menu:focus-visible {
34219
+ outline: #37517e solid 2px;
34220
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
34221
+ outline-offset: 2px;
34222
+ outline-offset: var(--ring-outline-offset);
34209
34223
  }
34210
34224
 
34211
34225
  .np-theme-personal--forest-green .typeahead .dropdown-menu,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "46.157.0",
3
+ "version": "46.157.1",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -92,8 +92,8 @@
92
92
  "storybook-addon-tag-badges": "^3.1.0",
93
93
  "storybook-addon-test-codegen": "^3.0.1",
94
94
  "@transferwise/less-config": "3.1.2",
95
- "@wise/components-theming": "1.10.3",
96
- "@wise/wds-configs": "0.0.0"
95
+ "@wise/wds-configs": "0.0.0",
96
+ "@wise/components-theming": "1.10.3"
97
97
  },
98
98
  "peerDependencies": {
99
99
  "@transferwise/icons": "^3 || ^4",
@@ -7,10 +7,20 @@
7
7
  .typeahead .dropdown-menu {
8
8
  max-width: 100%;
9
9
  width: 100%;
10
+ margin-top: 8px;
11
+ margin-top: var(--size-8);
10
12
  scroll-padding-top: 8px;
11
13
  scroll-padding-top: var(--size-8);
12
14
  scroll-padding-bottom: 8px;
13
15
  scroll-padding-bottom: var(--size-8);
16
+ --ring-outline-offset: calc(-1 * var(--ring-outline-width));
17
+ }
18
+ .typeahead .dropdown-menu:focus {
19
+ outline: none;
20
+ }
21
+ .typeahead .dropdown-menu:focus-visible {
22
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
23
+ outline-offset: var(--ring-outline-offset);
14
24
  }
15
25
  .np-theme-personal--forest-green .typeahead .dropdown-menu,
16
26
  .np-theme-personal--bright-green .typeahead .dropdown-menu,
@@ -1,5 +1,6 @@
1
1
  @import (reference) "./../styles/variables/legacy-variables.less";
2
2
  @import (reference) "./../styles/less/mixins/_logical-properties.less";
3
+ @import (reference) "./../styles/less/ring.less";
3
4
 
4
5
  @animation-timing-function: ease-in-out;
5
6
  @animation-duration: 0.03s;
@@ -18,8 +19,13 @@
18
19
  .dropdown-menu {
19
20
  max-width: 100%;
20
21
  width: 100%;
22
+ margin-top: var(--size-8);
21
23
  scroll-padding-top: var(--size-8);
22
24
  scroll-padding-bottom: var(--size-8);
25
+
26
+ .focus-ring();
27
+ --ring-outline-offset: calc(-1 * var(--ring-outline-width));
28
+
23
29
  .np-theme-personal--forest-green &,
24
30
  .np-theme-personal--bright-green &,
25
31
  .np-theme-personal--dark & {
package/src/main.css CHANGED
@@ -34202,10 +34202,24 @@ html:not([dir="rtl"]) .np-navigation-option {
34202
34202
  .typeahead .dropdown-menu {
34203
34203
  max-width: 100%;
34204
34204
  width: 100%;
34205
+ margin-top: 8px;
34206
+ margin-top: var(--size-8);
34205
34207
  scroll-padding-top: 8px;
34206
34208
  scroll-padding-top: var(--size-8);
34207
34209
  scroll-padding-bottom: 8px;
34208
34210
  scroll-padding-bottom: var(--size-8);
34211
+ --ring-outline-offset: calc(-1 * var(--ring-outline-width));
34212
+ }
34213
+
34214
+ .typeahead .dropdown-menu:focus {
34215
+ outline: none;
34216
+ }
34217
+
34218
+ .typeahead .dropdown-menu:focus-visible {
34219
+ outline: #37517e solid 2px;
34220
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
34221
+ outline-offset: 2px;
34222
+ outline-offset: var(--ring-outline-offset);
34209
34223
  }
34210
34224
 
34211
34225
  .np-theme-personal--forest-green .typeahead .dropdown-menu,