@sb1/ffe-file-upload 9.0.1 → 9.1.0

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.
@@ -229,26 +229,23 @@
229
229
 
230
230
  &__file-item-error-icon {
231
231
  background-color: var(--ffe-v-error-message-icon-color);
232
- text-align: center;
232
+ fill: var(--ffe-v-fileupload-error-icon-color);
233
233
  border-radius: 50%;
234
234
  width: 18px;
235
235
  height: 18px;
236
- margin-right: 4px;
237
- padding: 2px;
236
+ margin-right: @ffe-spacing-2xs;
237
+ padding: 3px;
238
238
  font-family: arial, sans-serif;
239
- line-height: 16px;
240
- display: inline-block;
239
+ display: inline-flex;
240
+ align-items: center;
241
+ justify-content: center;
242
+ align-self: center;
241
243
  grid-column: 1;
242
244
  grid-row: 1;
243
245
 
244
- &::before {
245
- content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" height="12" width="12" x="1650" y="1200" viewBox="0 0 200 200"%3E%3Cpath d="M99.882.64a16.562 16.562 0 0 0-16.294 16.772v93.863a16.562 16.562 0 1 0 33.102 0V17.412A16.562 16.562 0 0 0 99.882.64zm.257 162.054c-9.145 0-16.55 7.405-16.55 16.55 0 9.147 7.405 16.589 16.55 16.589 9.146 0 16.551-7.442 16.551-16.588s-7.405-16.551-16.55-16.551z"/%3E%3C/svg%3E');
246
-
247
- .native & {
248
- @media (prefers-color-scheme: dark) {
249
- content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23002776" height="12" width="12" x="1650" y="1200" viewBox="0 0 200 200"%3E%3Cpath d="M99.882.64a16.562 16.562 0 0 0-16.294 16.772v93.863a16.562 16.562 0 1 0 33.102 0V17.412A16.562 16.562 0 0 0 99.882.64zm.257 162.054c-9.145 0-16.55 7.405-16.55 16.55 0 9.147 7.405 16.589 16.55 16.589 9.146 0 16.551-7.442 16.551-16.588s-7.405-16.551-16.55-16.551z"/%3E%3C/svg%3E');
250
- }
251
- }
246
+ > svg {
247
+ width: 12px;
248
+ height: 12px;
252
249
  }
253
250
  }
254
251
 
package/less/theme.less CHANGED
@@ -1,10 +1,12 @@
1
- :root {
1
+ :root,
2
+ :host {
2
3
  --ffe-v-fileupload-bgcolor: var(--ffe-farge-frost-30);
3
4
  --ffe-v-fileupload-bordercolor: var(--ffe-farge-vann);
4
5
  --ffe-v-fileupload-btn-delete-color: var(--ffe-g-link-color);
5
6
  --ffe-v-fileupload-btn-delete-color-hover: var(--ffe-g-link-color-hover);
6
7
  --ffe-v-fileupload-stencil-bg: var(--ffe-farge-frost-30);
7
8
  --ffe-v-fileupload-filename-color: var(--ffe-farge-fjell);
9
+ --ffe-v-fileupload-error-icon-color: var(--ffe-farge-hvit);
8
10
 
9
11
  @media (prefers-color-scheme: dark) {
10
12
  .native {
@@ -16,6 +18,7 @@
16
18
  );
17
19
  --ffe-v-fileupload-stencil-bg: var(--ffe-farge-frost-70);
18
20
  --ffe-v-fileupload-filename-color: var(--ffe-farge-vann-30);
21
+ --ffe-v-fileupload-error-icon-color: var(--ffe-farge-fjell);
19
22
  }
20
23
  }
21
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-file-upload",
3
- "version": "9.0.1",
3
+ "version": "9.1.0",
4
4
  "description": "File upload module",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -16,8 +16,8 @@
16
16
  "test": "npm run lint"
17
17
  },
18
18
  "dependencies": {
19
- "@sb1/ffe-core": "^27.0.1",
20
- "@sb1/ffe-form": "^24.0.1"
19
+ "@sb1/ffe-core": "^27.1.0",
20
+ "@sb1/ffe-form": "^24.1.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@sb1/ffe-buildtool": "^0.5.0"
@@ -25,5 +25,5 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "265088ea4389fe1327a4a28758acf50b55dc64cb"
28
+ "gitHead": "2717d62c2fe4125c7160d0253f4bcc56fde9e06e"
29
29
  }