@nyt87/ui 0.2.5 → 0.2.6

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.
Files changed (2) hide show
  1. package/dist/styles.css +6 -4
  2. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -30,14 +30,16 @@
30
30
  /* ---------- Button ---------- */
31
31
  .ds-btn {
32
32
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
33
- font: inherit; font-weight: 600; line-height: 1; white-space: nowrap;
33
+ font: inherit; font-weight: 600; line-height: 1.25; text-align: center;
34
+ /* A label wraps only when there is no room (a phone at large text sizes) instead of being cut off. */
35
+ padding-block: var(--space-1);
34
36
  border: 1px solid transparent; border-radius: var(--radius-md);
35
37
  cursor: pointer; text-decoration: none;
36
38
  transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease);
37
39
  }
38
- .ds-btn--sm { min-height: 2rem; padding: 0 var(--space-3); font-size: var(--text-sm); }
39
- .ds-btn--md { min-height: 2.5rem; padding: 0 var(--space-4); font-size: var(--text-sm); }
40
- .ds-btn--lg { min-height: var(--tap-min); padding: 0 var(--space-5); font-size: var(--text-md); }
40
+ .ds-btn--sm { min-height: 2rem; padding-inline: var(--space-3); font-size: var(--text-sm); }
41
+ .ds-btn--md { min-height: 2.5rem; padding-inline: var(--space-4); font-size: var(--text-sm); }
42
+ .ds-btn--lg { min-height: var(--tap-min); padding-inline: var(--space-5); font-size: var(--text-md); }
41
43
  .ds-btn__icon { display: inline-flex; }
42
44
  .ds-btn--icon-only.ds-btn--sm { width: 2rem; padding: 0; }
43
45
  .ds-btn--icon-only.ds-btn--md { width: 2.5rem; padding: 0; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyt87/ui",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Framework-free UI components for nyt87 products: HTML + CSS, with small vanilla behaviours for the interactive parts",
5
5
  "type": "module",
6
6
  "license": "MIT",