Skip to content

fix(mui): preserve breadcrumb link styling#7502

Open
RajvardhanVharambale wants to merge 1 commit into
refinedev:mainfrom
RajvardhanVharambale:fix/mui-breadcrumb-span-styling
Open

fix(mui): preserve breadcrumb link styling#7502
RajvardhanVharambale wants to merge 1 commit into
refinedev:mainfrom
RajvardhanVharambale:fix/mui-breadcrumb-span-styling

Conversation

@RajvardhanVharambale

Copy link
Copy Markdown

Summary

This PR fixes a regression in the @refinedev/mui Breadcrumb component where MUI LinkProps (sx, underline, color, and variant) were forwarded to a native <span> instead of a MUI component.

As a result, these props were rendered as invalid HTML attributes and the intended MUI styling was not applied.

Changes

  • Replace the inner <span> in LinkRouter with <MuiLink component="span">
  • Preserve the existing router navigation behavior
  • Ensure MUI styling props are correctly handled by MuiLink

Result

  • sx styles are applied correctly
  • ✅ Hover underline works
  • ✅ Color inheritance works
  • ✅ Typography variant styling is restored
  • ✅ Prevents invalid HTML attributes from being rendered

Validation

  • Built @refinedev/mui successfully
  • Package declarations generated successfully

Fixes #7462

@changeset-bot

changeset-bot Bot commented Jul 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ccb3558

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] MUI Breadcrumb links lose all styling — sx/underline/color/variant spread onto a plain <span>

1 participant