@equinor/amplify-component-lib 8.18.1 → 8.18.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.
@@ -13,5 +13,8 @@ import{colors as t}from"../../atoms/style/colors.js";import o from"styled-compon
13
13
 
14
14
  div:has(> button) {
15
15
  outline-width: 1px;
16
+ > button:focus-visible {
17
+ outline: none;
18
+ }
16
19
  }
17
20
  `;export{e as DatePickerWrapper};
@@ -2,10 +2,12 @@ import{Link as t}from"react-router-dom";import{tokens as e}from"../../node_modul
2
2
  &:hover {
3
3
  background: ${s.interactive.primary__hover_alt.rgba};
4
4
  }
5
- &:focus {
6
- outline: 2px dashed ${s.interactive.focus.rgba};
7
- outline-offset: -4px;
8
- }
5
+ ${({$active:t})=>t?"":n`
6
+ &:focus:not(:hover) {
7
+ outline: 2px dashed ${s.interactive.focus.rgba};
8
+ outline-offset: -4px;
9
+ }
10
+ `}
9
11
  position: relative;
10
12
  display: grid;
11
13
  grid-template-columns: auto 1fr;
@@ -111,7 +113,6 @@ import{Link as t}from"react-router-dom";import{tokens as e}from"../../node_modul
111
113
  `}}}
112
114
  `,u=a.div`
113
115
  display: flex;
114
- flex-direction:;
115
116
  position: relative;
116
117
  &:after {
117
118
  position: absolute;
@@ -170,8 +171,7 @@ import{Link as t}from"react-router-dom";import{tokens as e}from"../../node_modul
170
171
  background: ${s.ui.background__medium.rgba};
171
172
  }
172
173
  `}}}
173
- data-testid="table-of-contents-container"
174
- `,b=a(r.div)`
174
+ `,$=a(r.div)`
175
175
  display: flex;
176
176
  flex-direction: column;
177
177
  ${({$shouldShowChildren:t})=>t?null:n`
@@ -187,4 +187,4 @@ import{Link as t}from"react-router-dom";import{tokens as e}from"../../node_modul
187
187
  }
188
188
 
189
189
  ${({$variant:t})=>"buttons"===t&&`gap:${i.x_small};`}
190
- `;export{f as BorderItemsContainer,u as BorderItemsHorizontalContainer,d as Button,b as ChildContainer,c as Link,g as TableOfContentsContainer,p as TableOfContentsItemContainer};
190
+ `;export{f as BorderItemsContainer,u as BorderItemsHorizontalContainer,d as Button,$ as ChildContainer,c as Link,g as TableOfContentsContainer,p as TableOfContentsItemContainer};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/amplify-component-lib",
3
- "version": "8.18.1",
3
+ "version": "8.18.2",
4
4
  "description": "Frontend Typescript components for the Amplify team",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",