@pathscale/ui 2.2.0 → 2.2.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.
@@ -256,24 +256,17 @@
256
256
  /* -----------------------------------------------------------------------
257
257
  * Icon-only — square, driven off the size scale
258
258
  * --------------------------------------------------------------------- */
259
+ /*
260
+ * Square means as wide as it is tall, so it is expressed that way. It used to
261
+ * be a hardcoded width per size, which is only square while nobody restyles
262
+ * the height: chuzz themes its buttons down to 1.125rem and got a 36 by 18
263
+ * "square" that overlapped the text beside it. aspect-ratio follows whatever
264
+ * height the button ends up with, including one an app sets itself.
265
+ */
259
266
  .button--width-square {
260
267
  padding-inline: 0;
261
- width: 2.25rem;
262
- }
263
- .button--width-square.button--xs {
264
- width: 1.75rem;
265
- }
266
- .button--width-square.button--sm {
267
- width: 2.25rem;
268
- }
269
- .button--width-square.button--md {
270
- width: 2.5rem;
271
- }
272
- .button--width-square.button--lg {
273
- width: 2.75rem;
274
- }
275
- .button--width-square.button--xl {
276
- width: 3rem;
268
+ width: auto;
269
+ aspect-ratio: 1;
277
270
  }
278
271
 
279
272
  /* -----------------------------------------------------------------------
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "solid-layouts-library-v2",
3
3
  "package": "@pathscale/ui",
4
- "version": "2.2.0",
4
+ "version": "2.2.1",
5
5
  "components": {
6
6
  "Accordion": {
7
7
  "kind": "embedded"
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/pathscale/ui"
8
8
  },
9
9
  "license": "MIT",
10
- "description": "Highly opinionated SolidJS component library \u2014 batteries and kitchen sink included, but optimized and shiny.",
10
+ "description": "Highly opinionated SolidJS component library batteries and kitchen sink included, but optimized and shiny.",
11
11
  "files": [
12
12
  "dist"
13
13
  ],