@sb1/ffe-context-message 7.1.2 → 7.1.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 +26 -0
- package/less/context-message.less +1 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -8,8 +8,34 @@ npm install --save @sb1/ffe-context-message
|
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
Full documentation on context message usage is available at https://design.sparebank1.no/komponenter/meldinger/#contextmessage.
|
|
12
|
+
|
|
11
13
|
```less
|
|
12
14
|
@import 'path/to/node_modules/@sb1/ffe-context-message/less/ffe-context-message';
|
|
13
15
|
```
|
|
14
16
|
|
|
15
17
|
See also `@sb1/ffe-context-message-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.
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
|
|
101
101
|
&__icon {
|
|
102
102
|
align-items: center;
|
|
103
|
-
align-self:
|
|
103
|
+
align-self: start;
|
|
104
104
|
display: flex;
|
|
105
105
|
flex-shrink: 0;
|
|
106
106
|
justify-content: center;
|
|
@@ -111,7 +111,6 @@
|
|
|
111
111
|
width: 2em;
|
|
112
112
|
|
|
113
113
|
@media (min-width: @breakpoint-sm) {
|
|
114
|
-
align-self: flex-start;
|
|
115
114
|
margin-bottom: 0;
|
|
116
115
|
height: 4em;
|
|
117
116
|
width: 4em;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-context-message",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.4",
|
|
4
4
|
"description": "Messagebox showing non-critical tip or information about a page or product",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ffe"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test": "npm run lint"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@sb1/ffe-core": "^27.0.
|
|
22
|
+
"@sb1/ffe-core": "^27.0.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@sb1/ffe-buildtool": "^0.5.0"
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "b4302de5b5cf2829ea49c26dd8ad9292db40b028"
|
|
31
31
|
}
|