@sb1/ffe-lists 13.0.5 → 14.0.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.
@@ -121,10 +121,15 @@
121
121
  }
122
122
 
123
123
  .ffe-check-list__item {
124
+ --line-height: 1.5em;
125
+
124
126
  margin-top: @ffe-spacing-sm;
125
127
  position: relative;
126
- line-height: 1.5em;
127
- padding-left: 2em;
128
+ line-height: var(--line-height);
129
+ display: grid;
130
+ grid-template-columns: auto 1fr;
131
+ grid-template-rows: var(--line-height) 1fr;
132
+ grid-column-gap: 1.5em;
128
133
 
129
134
  .native & {
130
135
  @media (prefers-color-scheme: dark) {
@@ -135,10 +140,9 @@
135
140
 
136
141
  .ffe-check-list {
137
142
  &__icon {
138
- margin-right: @ffe-spacing-sm;
139
- position: absolute;
140
- left: 0;
141
-
143
+ grid-column: 1/2;
144
+ grid-row: 1/2;
145
+ place-self: center;
142
146
  &--check.ffe-icons {
143
147
  color: var(--ffe-v-lists-check-list-check-icon-color);
144
148
  }
@@ -153,10 +157,10 @@
153
157
  display: flex;
154
158
  flex-wrap: wrap;
155
159
  justify-content: space-between;
160
+ gap: @ffe-spacing-xs;
156
161
 
157
162
  .ffe-check-list__item {
158
163
  flex: 1 0 auto;
159
- display: block;
160
164
  width: 40%;
161
165
  }
162
166
  }
@@ -179,3 +183,8 @@
179
183
  }
180
184
  }
181
185
  }
186
+
187
+ .ffe-check-list__item-content {
188
+ grid-column: 2/3;
189
+ grid-row: 1/-1;
190
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-lists",
3
- "version": "13.0.5",
3
+ "version": "14.0.0",
4
4
  "description": "Lists in ffe",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "e9f8ba0eb329a7b2fc1aa21512c67ad440b74bb0"
27
+ "gitHead": "eba90ee7c4b274041c749177c0d27daee9c4a2a0"
28
28
  }