@oslokommune/punkt-css 7.1.7 → 8.0.0

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.
@@ -1,73 +1,13 @@
1
1
  /*
2
2
  * Select component
3
3
  *
4
- * TODO: Det er ikke optimalt løst å duplisere svg-ikonet,
5
- * dette refaktoreres ved anledning.
4
+ * Denne blir stilsatt av .pkt-input
5
+ * Ikke bruk klassen .pkt-select
6
6
  */
7
7
 
8
- @use 'sass:map';
9
- @use '../abstracts/variables';
10
- @use '../abstracts/functions';
8
+ @use './input';
11
9
 
12
- .pkt-select {
13
- --svg: url(https://punkt-cdn.oslo.kommune.no/7.1/icons/chevron-thin-down.svg);
14
-
15
- display: block;
16
- background-color: var(--color-white);
17
- background-image: var(--svg);
18
- background-repeat: no-repeat;
19
- background-position: right 0.7rem top 50%;
20
- background-size: 2rem auto, 100%;
21
- border: 2px solid var(--color-blue-dark);
22
- border-radius: 0;
23
- color: var(--color-blue-dark);
24
- font-family: inherit;
25
- font-size: map.get(variables.$font-size, 'size-16');
26
- font-weight: normal;
27
- height: 3.125rem;
28
- line-height: 2rem;
29
- margin: 0;
30
- max-width: 100%;
31
- padding: 0.4375rem 3rem 0.4375rem 0.5rem;
32
- width: 100%;
33
- appearance: none;
34
- -moz-appearance: none;
35
- -webkit-appearance: none;
36
-
37
- &::-ms-expand {
38
- display: none;
39
- }
40
-
41
- &:enabled:focus {
42
- border-color: var(--color-active);
43
- outline: 2px solid var(--color-active);
44
- }
45
-
46
- &:enabled:hover {
47
- --fg-color: var(--color-active);
48
- border-color: var(--color-active);
49
- color: var(--color-active);
50
- }
51
-
52
- &:enabled:active {
53
- border-color: var(--color-active);
54
- outline: none;
55
- }
56
-
57
- // Remove outline from select box in FF
58
- &:-moz-focusring {
59
- color: transparent;
60
- text-shadow: 0 0 0 var(--color-active);
61
- }
62
-
63
- &:disabled {
64
- filter: grayscale(1) brightness(4.16);
65
- font-weight: 500;
66
- }
67
-
68
- option {
69
- background-color: var(--color-white);
70
- color: var(--color-blue-dark);
71
- font-weight: normal;
72
- }
10
+ .pkt-select select,
11
+ .pkt-select:is(select) {
12
+ @extend .pkt-input;
73
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "7.1.7",
3
+ "version": "8.0.0",
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",
@@ -20,7 +20,7 @@
20
20
  "preview": "astro preview"
21
21
  },
22
22
  "devDependencies": {
23
- "@oslokommune/punkt-assets": "^7.0.0",
23
+ "@oslokommune/punkt-assets": "^8.0.0",
24
24
  "astro": "^2.8.1",
25
25
  "edit-json-file": "^1.7.0",
26
26
  "fs-extra": "^11.1.0",
@@ -55,5 +55,5 @@
55
55
  "url": "https://github.com/oslokommune/punkt/issues"
56
56
  },
57
57
  "license": "MIT",
58
- "gitHead": "fa7793e49762fb361a1f99ec2f1a3060f6b5e361"
58
+ "gitHead": "802717c2facf5f2d3688cf39f1c448ee75f75f8e"
59
59
  }