@sb1/ffe-lists 12.0.2 → 12.0.3

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/README.md CHANGED
@@ -8,8 +8,34 @@ npm install --save @sb1/ffe-lists
8
8
 
9
9
  ## Usage
10
10
 
11
+ Full documentation on lists usage is available at https://design.sparebank1.no/komponenter/lister/.
12
+
11
13
  ```less
12
14
  @import 'path/to/node_modules/@sb1/ffe-lists/less/lists';
13
15
  ```
14
16
 
15
17
  See also `@sb1/ffe-lists-react`.
18
+
19
+ ## Theming with CSS custom properties
20
+
21
+ In order to support theming of components, this package contains styling that depends on a set of custom properties, defined in `less/theme.less`. These properties in turn depend on a base theme defined in `ffe-core`.
22
+
23
+ If your project uses the `ffe-core`, you're probably good to go. If not, make sure to import the core properties in `theme.less`:
24
+
25
+ ```css
26
+ @import '~@sb1/ffe-core/less/theme';
27
+ ```
28
+
29
+ ## Development
30
+
31
+ To start a local development server, run the following from the designsystem root folder:
32
+
33
+ ```bash
34
+ npm install
35
+ npm run build
36
+ npm start
37
+ ```
38
+
39
+ A local instance of `component-overview` with live reloading will run at http://localhost:1234/.
40
+
41
+ Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.
@@ -124,6 +124,7 @@
124
124
  margin-top: @ffe-spacing-sm;
125
125
  position: relative;
126
126
  line-height: 1.5em;
127
+ padding-left: 2em;
127
128
 
128
129
  .native & {
129
130
  @media (prefers-color-scheme: dark) {
@@ -137,6 +138,9 @@
137
138
  width: 1em;
138
139
  height: 1em;
139
140
  margin-right: @ffe-spacing-sm;
141
+ position: absolute;
142
+ left: 0;
143
+ top: 0.15em;
140
144
 
141
145
  &--check {
142
146
  fill: var(--ffe-v-lists-check-list-check-icon-color);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-lists",
3
- "version": "12.0.2",
3
+ "version": "12.0.3",
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": "af7fc1a32630d5717ffbc8f50f339ba697c73130"
27
+ "gitHead": "44ec483ce1ceab06cce9d1ea1f45c29ed475c7e2"
28
28
  }