@kolkrabbi/kol-framework 0.5.12 → 0.5.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-framework",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "description": "KOL app shell — sidenav, layout, theme toggle, footer, heroes + brand color layer. SideNav takes nav data as props so the tree stays app-local.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -63,7 +63,11 @@ export default function ThemeToggle({ variant = 'icon', size = 'md', className =
63
63
 
64
64
  if (variant === 'button') {
65
65
  const mono = size === 'sm' ? 'kol-mono-12' : size === 'lg' ? 'kol-mono-16' : 'kol-mono-14'
66
- const glyph = size === 'sm' ? 16 : size === 'lg' ? 24 : 20
66
+ /* Text-adjacent glyph law: the glyph must never exceed the rung's mono
67
+ * line box (16/18/22), or it inflates the button past the ladder height —
68
+ * playwright-measured against a same-rung kol-btn: 14/16/18 keeps them
69
+ * pixel-equal. (The 16/20/24 pairing law is for pinned icon-only squares.) */
70
+ const glyph = size === 'sm' ? 14 : size === 'lg' ? 18 : 16
67
71
  return (
68
72
  <button
69
73
  type="button"