@oslokommune/punkt-css 11.0.0 → 11.0.1

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/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [11.0.1](https://github.com/oslokommune/punkt/compare/11.0.0...11.0.1) (2024-01-03)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ * Mulighet for å overstyre ikonstien i SCSS (#1387).
18
+
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
8
26
  ## [11.0.0](https://github.com/oslokommune/punkt/compare/10.0.0...11.0.0) (2023-12-20)
9
27
 
10
28
  ### ⚠ BREAKING CHANGES
@@ -5,6 +5,9 @@
5
5
  @forward 'breakpoints';
6
6
  @forward 'spacing';
7
7
 
8
+ // Default icon path
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/11.0/icons' !default;
10
+
8
11
  // Borders
9
12
  $border-width: (
10
13
  'thin': 1px,
@@ -102,7 +102,7 @@ a,
102
102
 
103
103
  &--external::after {
104
104
  content: ' ';
105
- --svg: url(https://punkt-cdn.oslo.kommune.no/11.0/icons/new-window-small.svg);
105
+ --svg: url(#{variables.$icon-path}/new-window-small.svg);
106
106
  background-image: var(--svg);
107
107
  background-repeat: no-repeat;
108
108
  background-size: 18px 18px;
@@ -116,7 +116,7 @@ $-module-name: 'pkt-input-check';
116
116
  &:checked {
117
117
  // Checkbox
118
118
  &[type='checkbox'] {
119
- --svg: url(https://punkt-cdn.oslo.kommune.no/11.0/icons/check-medium.svg);
119
+ --svg: url(#{variables.$icon-path}/check-medium.svg);
120
120
  position: relative;
121
121
  background-color: var(--pkt-color-input-border-normal);
122
122
  }
@@ -77,7 +77,7 @@
77
77
  padding-right: 3rem;
78
78
 
79
79
  &:not([multiple]) {
80
- --svg: url(https://punkt-cdn.oslo.kommune.no/11.0/icons/chevron-thin-down.svg);
80
+ --svg: url(#{variables.$icon-path}/chevron-thin-down.svg);
81
81
  background-image: var(--svg);
82
82
  background-repeat: no-repeat;
83
83
  background-position: right 0.7rem top 50%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "11.0.0",
3
+ "version": "11.0.1",
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": "bbfa8ce736348b9729d8a8e7269221e3fc2d4c8c"
58
+ "gitHead": "1860e030cf7de6a9e7ef7471ee93997013aad25a"
59
59
  }