@sb1/ffe-accordion 9.0.2 → 9.0.4

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-accordion
8
8
 
9
9
  ## Usage
10
10
 
11
+ Full documentation on accordion usage is available at https://design.sparebank1.no/komponenter/accordion/.
12
+
11
13
  ```less
12
14
  @import 'path/to/node_modules/@sb1/ffe-accordion/less/ffe-accordion';
13
15
  ```
14
16
 
15
17
  See also `@sb1/ffe-accordion-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 `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.
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  &__heading-button-content {
47
- text-align: start;
47
+ text-align: left;
48
48
  width: 100%;
49
49
  display: flex;
50
50
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-accordion",
3
- "version": "9.0.2",
3
+ "version": "9.0.4",
4
4
  "description": "Accordion component for 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.0.0"
19
+ "@sb1/ffe-core": "^27.0.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@sb1/ffe-buildtool": "^0.5.0"
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "af7fc1a32630d5717ffbc8f50f339ba697c73130"
27
+ "gitHead": "1ab898e744977e4cb4db1bee9b65369a0deeef9a"
28
28
  }