Skip to content

[Bug] Checkbox root transparency makes custom icons invisible #1621

@kanishksingh23

Description

@kanishksingh23

Description
In @sistent/sistent's theme overrides (src/theme/components/checkbox.modifier.ts), color: transparent is applied globally at the root level of MuiCheckbox.

Because standard SVG icons inherit color via currentColor, any custom SVG icon component passed to the icon or checkedIcon props of a Checkbox (e.g. FilterAllIcon used in Meshery's cluster dropdown) automatically inherits this root transparency and becomes completely invisible in its unchecked state.

Steps to Reproduce

  1. Import and render a Checkbox from Sistent/MUI.
  2. Pass a custom SVG icon (without hardcoding an inline fill attribute) to the icon prop.
  3. Observe that the custom icon path is completely transparent/invisible.

Expected Behaviour

  1. Default Sistent checkboxes should keep their custom border and hide the default outline path.
  2. Custom icons passed as props should be fully visible and respect default state/theme colors instead of inheriting transparent.

Contributor Guides and Resources

Metadata

Metadata

Labels

kind/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions