@miljodirektoratet/md-css 1.1.0 → 1.1.2
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/package.json
CHANGED
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
|
|
27
27
|
.md-input:not(.md-input.md-input--readonly):not(.md-input.md-input--disabled):active,
|
|
28
28
|
.md-input:not(.md-input.md-input--readonly):not(.md-input.md-input--disabled):focus {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
outline: 2px solid var(--mdPrimaryColor80);
|
|
30
|
+
outline-offset: -2px;
|
|
31
|
+
border-color: transparent;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.md-input.md-input--disabled:focus,
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
|
|
20
20
|
.md-textarea:not(.md-textarea.md-textarea--readonly):not(.md-textarea.md-textarea--disabled):active,
|
|
21
21
|
.md-textarea:not(.md-textarea.md-textarea--readonly):not(.md-textarea.md-textarea--disabled):focus {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
outline: 2px solid var(--mdPrimaryColor80);
|
|
23
|
+
outline-offset: -2px;
|
|
24
|
+
border-color: transparent;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.md-textarea.md-textarea--disabled:focus,
|
|
@@ -10,8 +10,13 @@ See [Storybook](https://miljodir.github.io/md-components) for examples and more
|
|
|
10
10
|
<div
|
|
11
11
|
className="md-alert-message [md-alert-message--confirm, md-alert-message--warning, md-alert-message--error, md-alert-message--fullWidth]"
|
|
12
12
|
>
|
|
13
|
-
<div className="md-alert-message__content">
|
|
13
|
+
<div className="md-alert-message__content">
|
|
14
|
+
<Icon className="md-alert-message__icon" width="20" height="20" />
|
|
15
|
+
{label}
|
|
16
|
+
</div>
|
|
14
17
|
|
|
15
|
-
<button className="md-alert-message__button" onClick="{handleClick}">
|
|
18
|
+
<button className="md-alert-message__button" onClick="{handleClick}">
|
|
19
|
+
<Icon width="16" height="16" />
|
|
20
|
+
</button>
|
|
16
21
|
</div>
|
|
17
22
|
```
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
.md-info-box {
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
|
-
gap:
|
|
5
|
+
gap: 1rem;
|
|
6
6
|
font-family: 'Open sans';
|
|
7
|
-
font-size:
|
|
8
|
-
padding:
|
|
7
|
+
font-size: 1rem;
|
|
8
|
+
padding: 1rem;
|
|
9
9
|
background-color: var(--mdSecondaryColor20);
|
|
10
10
|
border: 1px dashed var(--mdPrimaryColor);
|
|
11
11
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
align-items: center;
|
|
20
20
|
justify-content: space-between;
|
|
21
21
|
font-family: 'Open sans';
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 1rem;
|
|
23
23
|
width: 100%;
|
|
24
24
|
background-color: var(--mdPrimaryColor10);
|
|
25
25
|
}
|
|
@@ -39,18 +39,29 @@
|
|
|
39
39
|
color: #fff;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
.md-alert-message__icon {
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
42
46
|
.md-alert-message__content {
|
|
43
47
|
display: flex;
|
|
44
48
|
align-items: center;
|
|
45
|
-
gap:
|
|
46
|
-
padding:
|
|
49
|
+
gap: 1rem;
|
|
50
|
+
padding: 1rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.md-alert-message__content--start {
|
|
54
|
+
align-items: flex-start;
|
|
55
|
+
}
|
|
56
|
+
.md-alert-message__content--end {
|
|
57
|
+
align-items: flex-end;
|
|
47
58
|
}
|
|
48
59
|
|
|
49
60
|
.md-alert-message__button {
|
|
50
61
|
border: 0;
|
|
51
62
|
background-color: transparent;
|
|
52
63
|
margin: 0;
|
|
53
|
-
padding:
|
|
64
|
+
padding: 1rem;
|
|
54
65
|
cursor: pointer;
|
|
55
66
|
}
|
|
56
67
|
|