@moderneinc/neo-styled-components 5.0.0 → 5.1.0-next.4564a7

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/dist/index.esm.js CHANGED
@@ -2781,15 +2781,18 @@ function NeoDataGrid({ autoHeight = false, toolbar, slots, sx, density = 'standa
2781
2781
  ...getDataGridHeaderStyles(),
2782
2782
  ...getDataGridRowStyles(),
2783
2783
  border: `1px solid ${semanticColors.border.secondary}`,
2784
- // Style row selection checkboxes to match header (16px, proper spacing).
2785
- // Target `& svg` (not `.MuiSvgIcon-root`) so the rule also matches the
2786
- // lucide `<svg>` icons NeoCheckbox renders, mirroring the header rule.
2784
+ // Target `& svg` (not `.MuiSvgIcon-root`) to match the lucide icons
2785
+ // NeoCheckbox renders, mirroring the header rule below.
2786
+ // flexShrink: 0 stops the icon collapsing to 0 width when the checkbox
2787
+ // column is narrower than the 32px box (16px icon + 16px padding) —
2788
+ // without it the checkbox becomes invisible but stays clickable.
2787
2789
  [`& .${gridClasses.cellCheckbox}`]: {
2788
2790
  [`& .${checkboxClasses.root}`]: {
2789
2791
  padding: `${spacing.spacing_1}px`,
2790
2792
  '& svg': {
2791
2793
  width: 16,
2792
2794
  height: 16,
2795
+ flexShrink: 0,
2793
2796
  },
2794
2797
  },
2795
2798
  },