@moderneinc/neo-styled-components 5.0.0 → 5.1.0-next.95f3b6

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