@oslokommune/punkt-css 11.13.2 → 11.13.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.
@@ -38,18 +38,23 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
38
38
  .#{$-module-name} {
39
39
  padding: $-messagebox-spacing $-messagebox-spacing $-messagebox-spacing
40
40
  calc($-messagebox-spacing - $-border-thickness);
41
- display: block;
42
- position: relative;
41
+
42
+ display: grid;
43
+ grid-template-areas: 'title close' 'text text';
44
+ grid-template-columns: auto 40px;
45
+
43
46
  border-left: $-border-thickness solid var(--pkt-color-messagebox-bc);
44
47
  background-color: var(--pkt-color-messagebox-bg);
45
48
  color: var(--pkt-color-messagebox-txt);
46
49
 
47
50
  &__title {
51
+ grid-area: title;
48
52
  @include get-text('pkt-txt-24-medium');
49
53
  margin: 0 0 $-messagebox-spacing 0;
50
54
  }
51
55
 
52
56
  &__text {
57
+ grid-area: text;
53
58
  @include get-text('pkt-txt-18-light');
54
59
  margin: 0;
55
60
 
@@ -61,12 +66,19 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
61
66
  }
62
67
  }
63
68
  }
69
+
70
+ &__close {
71
+ grid-area: close;
72
+
73
+ & svg {
74
+ --fg-color: var(--pkt-color-alert-close-fg);
75
+ }
76
+ }
64
77
  }
65
78
 
66
79
  // Compact variant
67
80
  .#{$-module-name}--compact {
68
- padding: $-messagebox-spacing-compact $-messagebox-spacing-compact
69
- $-messagebox-spacing-compact
81
+ padding: $-messagebox-spacing-compact $-messagebox-spacing-compact $-messagebox-spacing-compact
70
82
  calc($-messagebox-spacing-compact - $-border-thickness);
71
83
  .#{$-module-name}__title {
72
84
  @include get-text('pkt-txt-16-medium');
@@ -75,4 +87,8 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
75
87
  .#{$-module-name}__text {
76
88
  @include get-text('pkt-txt-16-light');
77
89
  }
90
+
91
+ .#{$-module-name}__close > .pkt-btn {
92
+ top: -15px;
93
+ }
78
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "11.13.2",
3
+ "version": "11.13.3",
4
4
  "description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -55,5 +55,5 @@
55
55
  "url": "https://github.com/oslokommune/punkt/issues"
56
56
  },
57
57
  "license": "MIT",
58
- "gitHead": "6f42516f8ea54808ba227247a390d119aef1fbe5"
58
+ "gitHead": "344b120d07c6db09133e94caa559da4919afc23e"
59
59
  }