@navikt/ds-css 1.4.3 → 1.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @navikt/ds-css
2
2
 
3
+ ## 1.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1684](https://github.com/navikt/Designsystemet/pull/1684) [`e19bf67b3`](https://github.com/navikt/Designsystemet/commit/e19bf67b337dea39989c68b5e9c2591cf0d5b40f) Thanks [@KenAJoh](https://github.com/KenAJoh)! - :sparkles: Oppdaterte tag-varianter
8
+
9
+ - [#1668](https://github.com/navikt/Designsystemet/pull/1668) [`97c5f60e9`](https://github.com/navikt/Designsystemet/commit/97c5f60e9111da7e08f55c8d0aa29581f0a9b1ca) Thanks [@KenAJoh](https://github.com/KenAJoh)! - Chips komponent :sparkles:
10
+
11
+ ## 1.4.4
12
+
3
13
  ## 1.4.3
4
14
 
5
15
  ### Patch Changes
package/chips.css ADDED
@@ -0,0 +1,124 @@
1
+ .navds-chips {
2
+ display: flex;
3
+ gap: var(--navds-spacing-2);
4
+ margin: 0;
5
+ padding: 0;
6
+ list-style: none;
7
+ }
8
+
9
+ .navds-chips :where(li) {
10
+ margin: 0;
11
+ padding: 0;
12
+ list-style: none;
13
+ display: block;
14
+ }
15
+
16
+ .navds-chips__chip {
17
+ all: unset;
18
+ display: flex;
19
+ cursor: pointer;
20
+ align-items: center;
21
+ justify-content: center;
22
+ gap: 0.125rem;
23
+ margin: 0;
24
+ padding: 0 var(--navds-spacing-3);
25
+ text-decoration: none;
26
+ border-radius: var(--navds-border-radius-full);
27
+ min-height: 32px;
28
+ }
29
+
30
+ .navds-chips--small .navds-chips__chip {
31
+ min-height: 24px;
32
+ padding: 0 var(--navds-spacing-2);
33
+ }
34
+
35
+ .navds-chips__filter {
36
+ box-shadow: inset 0 0 0 1px var(--ac-chip-filter-border, var(--navds-global-color-gray-500));
37
+ background-color: var(--ac-chip-filter-bg, rgb(0 0 0 / 0.055));
38
+ }
39
+
40
+ .navds-chips__filter:hover {
41
+ box-shadow: inset 0 0 0 1px var(--ac-chip-filter-border-hover, var(--navds-global-color-gray-600));
42
+ background-color: var(--ac-chip-filter-bg-hover, rgb(0 0 0 / 0.1));
43
+ }
44
+
45
+ .navds-chips__filter[aria-pressed="true"] {
46
+ box-shadow: none;
47
+ background-color: var(--ac-chip-filter-bg-pressed, var(--navds-global-color-deepblue-500));
48
+ color: var(--ac-chip-filter-text-pressed, var(--navds-global-color-white));
49
+ }
50
+
51
+ .navds-chips__filter[aria-pressed="true"]:hover {
52
+ background-color: var(--ac-chip-filter-bg-pressed-hover, var(--navds-global-color-deepblue-600));
53
+ }
54
+
55
+ .navds-chips__filter:focus-visible {
56
+ box-shadow: 0 0 0 2px var(--navds-global-color-blue-800);
57
+ }
58
+
59
+ .navds-chips__filter[aria-pressed="true"]:focus-visible,
60
+ .navds-chips__filter:active:focus-visible {
61
+ box-shadow: inset 0 0 0 1px var(--navds-global-color-white), 0 0 0 2px var(--navds-global-color-blue-800);
62
+ }
63
+
64
+ .navds-chips__removable--action {
65
+ background-color: var(--ac-chip-removable-action-bg, var(--navds-global-color-deepblue-500));
66
+ color: var(--ac-chip-removable-action-text, var(--navds-global-color-white));
67
+ }
68
+
69
+ .navds-chips__removable--neutral {
70
+ color: var(--ac-chip-removable-neutral-text, var(--navds-global-color-gray-900));
71
+ background-color: var(--ac-chip-removable-neutral-bg, rgb(0 0 0/ 0.055));
72
+ box-shadow: inset 0 0 0 1px var(--ac-chip-removable-neutral-border, var(--navds-global-color-gray-500));
73
+ }
74
+
75
+ .navds-chips__removable-icon,
76
+ .navds-chips__filter-icon {
77
+ width: 1.5rem;
78
+ height: 1.5rem;
79
+ display: grid;
80
+ place-items: center;
81
+ border-radius: var(--navds-border-radius-full);
82
+ }
83
+
84
+ .navds-chips--small .navds-chips__removable-icon {
85
+ width: 1.25rem;
86
+ height: 1.25rem;
87
+ }
88
+
89
+ .navds-chips--small .navds-chips__removable-icon > svg {
90
+ width: 0.75rem;
91
+ }
92
+
93
+ .navds-chips__removable--action:focus-visible {
94
+ box-shadow: inset 0 0 0 1px var(--navds-global-color-white), 0 0 0 2px var(--navds-global-color-blue-800);
95
+ }
96
+
97
+ .navds-chips__removable--neutral:focus-visible {
98
+ box-shadow: 0 0 0 2px var(--navds-global-color-blue-800);
99
+ }
100
+
101
+ .navds-chips__removable--action:hover {
102
+ background-color: var(--ac-chip-removable-action-bg-hover, var(--navds-global-color-deepblue-700));
103
+ }
104
+
105
+ .navds-chips__removable--neutral:hover {
106
+ background-color: var(--ac-chip-removable-action-bg-hover, rgb(0 0 0 / 0.1));
107
+ box-shadow: inset 0 0 0 1px var(--ac-chip-removable-neutral-border-hover, var(--navds-global-color-gray-600));
108
+ }
109
+
110
+ .navds-chips--icon-left {
111
+ padding-left: var(--navds-spacing-1);
112
+ }
113
+
114
+ .navds-chips--icon-right {
115
+ padding-right: var(--navds-spacing-1);
116
+ }
117
+
118
+ .navds-chips--small .navds-chips--icon-right {
119
+ padding-right: 0.125rem;
120
+ }
121
+
122
+ .navds-chips--small .navds-chips--icon-left {
123
+ padding-left: 0.125rem;
124
+ }