@sb1/ffe-lists 15.0.4 → 15.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.
@@ -0,0 +1,65 @@
1
+ .ffe-detail-list-card {
2
+ background-color: var(--ffe-v-detail-list-card-background-color);
3
+ border-radius: var(--ffe-v-detail-list-card-border-radius);
4
+ font-family: var(--ffe-g-font);
5
+ font-variant-numeric: tabular-nums;
6
+ container-type: inline-size;
7
+
8
+ &__item:not(:last-child) {
9
+ border-bottom: 1px solid var(--ffe-v-detail-list-card-border-color);
10
+ }
11
+
12
+ &__item {
13
+ padding: var(--ffe-spacing-sm);
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ align-items: center;
17
+ justify-content: space-between;
18
+ gap: var(--ffe-spacing-xs);
19
+ overflow-wrap: anywhere;
20
+ text-wrap: balance;
21
+
22
+ &:is(button) {
23
+ background-color: transparent;
24
+ border: 0;
25
+ width: 100%;
26
+ color: inherit;
27
+ }
28
+
29
+ &:is(a) {
30
+ text-decoration: none;
31
+ color: inherit;
32
+ }
33
+
34
+ &:is(:first-child) {
35
+ border-radius: var(--ffe-v-detail-list-card-border-radius)
36
+ var(--ffe-v-detail-list-card-border-radius) 0 0;
37
+ }
38
+
39
+ &:is(:last-child) {
40
+ border-radius: 0 0 var(--ffe-v-detail-list-card-border-radius)
41
+ var(--ffe-v-detail-list-card-border-radius);
42
+ }
43
+
44
+ &-label {
45
+ font-family: var(--ffe-g-font-heading-small);
46
+ color: var(--ffe-g-secondary-color);
47
+ }
48
+
49
+ &-value {
50
+ margin: 0; // Removes the default dd-element margin when it breaks to a new line
51
+ display: flex;
52
+ align-items: center;
53
+
54
+ & > a,
55
+ & > button {
56
+ min-width: 24px; // Secures a minimal size for clickable area in WCAG
57
+ }
58
+ }
59
+
60
+ @container (width < 299px) {
61
+ flex-direction: column;
62
+ align-items: normal;
63
+ }
64
+ }
65
+ }
package/less/lists.less CHANGED
@@ -1,3 +1,4 @@
1
1
  @import 'theme';
2
2
  @import './regular-lists.less';
3
3
  @import './description-list.less';
4
+ @import './detail-list-card.less';
package/less/theme.less CHANGED
@@ -4,7 +4,9 @@
4
4
  --ffe-v-lists-description-description-color: var(--ffe-farge-svart);
5
5
  --ffe-v-lists-check-list-check-icon-color: var(--ffe-farge-skog);
6
6
  --ffe-v-lists-check-list-cross-icon-color: var(--ffe-farge-baer);
7
-
7
+ --ffe-v-detail-list-card-background-color: var(--ffe-farge-hvit);
8
+ --ffe-v-detail-list-card-border-color: var(--ffe-farge-lysgraa);
9
+ --ffe-v-detail-list-card-border-radius: 16px;
8
10
  @media (prefers-color-scheme: dark) {
9
11
  .native {
10
12
  --ffe-v-lists-title-color: var(--ffe-farge-hvit);
@@ -12,6 +14,8 @@
12
14
  --ffe-farge-lysgraa
13
15
  );
14
16
  --ffe-v-lists-check-list-check-icon-color: var(--ffe-farge-skog-70);
17
+ --ffe-v-detail-list-card-background-color: var(--ffe-farge-natt);
18
+ --ffe-v-detail-list-card-border-color: var(--ffe-farge-koksgraa);
15
19
  }
16
20
  }
17
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-lists",
3
- "version": "15.0.4",
3
+ "version": "15.1.0",
4
4
  "description": "Lists in ffe",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -16,7 +16,7 @@
16
16
  "test": "npm run lint"
17
17
  },
18
18
  "dependencies": {
19
- "@sb1/ffe-core": "^27.3.4"
19
+ "@sb1/ffe-core": "^27.3.5"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@sb1/ffe-buildtool": "^0.5.1"
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "530c07f3d613834eb4d5309f53ec715a9ef83936"
27
+ "gitHead": "897eb2402218bae5e5b80dc1272173ae8413eb86"
28
28
  }