@ndla/primitives 0.0.4 → 0.0.5

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.
@@ -124,7 +124,8 @@
124
124
  "paddingBlock]___[value:3xsmall",
125
125
  "lineHeight]___[value:1",
126
126
  "minHeight]___[value:unset",
127
- "height]___[value:fit-content",
127
+ "height]___[value:xxlarge",
128
+ "width]___[value:xxlarge",
128
129
  "marginInline]___[value:0]___[cond:& svg",
129
130
  "marginBlock]___[value:0]___[cond:& svg",
130
131
  "width]___[value:medium]___[cond:& svg",
@@ -390,8 +391,6 @@
390
391
  "marginInline]___[value:auto",
391
392
  "borderWidth]___[value:4px",
392
393
  "borderWidth]___[value:8px",
393
- "height]___[value:xxlarge",
394
- "width]___[value:xxlarge",
395
394
  "background]___[value:surface.disabled.strong",
396
395
  "padding]___[value:1",
397
396
  "borderRadius]___[value:medium",
package/dist/styles.css CHANGED
@@ -263,8 +263,12 @@
263
263
  min-height: unset;
264
264
  }
265
265
 
266
- .h_fit-content {
267
- height: fit-content;
266
+ .h_xxlarge {
267
+ height: var(--sizes-xxlarge);
268
+ }
269
+
270
+ .w_xxlarge {
271
+ width: var(--sizes-xxlarge);
268
272
  }
269
273
 
270
274
  .select_none {
@@ -700,14 +704,6 @@
700
704
  margin-inline: auto;
701
705
  }
702
706
 
703
- .h_xxlarge {
704
- height: var(--sizes-xxlarge);
705
- }
706
-
707
- .w_xxlarge {
708
- width: var(--sizes-xxlarge);
709
- }
710
-
711
707
  .bg_surface\.disabled\.strong {
712
708
  background: var(--colors-surface-disabled-strong);
713
709
  }
package/es/Button.js CHANGED
@@ -165,7 +165,8 @@ export const iconButtonRecipe = cva({
165
165
  base: {
166
166
  lineHeight: "1",
167
167
  minHeight: "unset",
168
- height: "fit-content",
168
+ height: "xxlarge",
169
+ width: "xxlarge",
169
170
  "& svg": {
170
171
  marginInline: "0",
171
172
  marginBlock: "0",
package/lib/Button.js CHANGED
@@ -171,7 +171,8 @@ const iconButtonRecipe = exports.iconButtonRecipe = (0, _css.cva)({
171
171
  base: {
172
172
  lineHeight: "1",
173
173
  minHeight: "unset",
174
- height: "fit-content",
174
+ height: "xxlarge",
175
+ width: "xxlarge",
175
176
  "& svg": {
176
177
  marginInline: "0",
177
178
  marginBlock: "0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Primitive components for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "8f0469f768ed618830dea90b36b92b0d4bb20639"
47
+ "gitHead": "ca017a610c49c3f08691b7963b7a82284c3baa2b"
48
48
  }