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