Skip to content

fix(mui): preserve styling props in breadcrumb links#7472

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

fix(mui): preserve styling props in breadcrumb links#7472
amalgio wants to merge 1 commit into
refinedev:mainfrom
amalgio:fix/mui-breadcrumb-styling

Conversation

@amalgio

@amalgio amalgio commented Jun 25, 2026

Copy link
Copy Markdown

The LinkRouter component inside Breadcrumb was wrapping children in a plain HTML inside router Link component.

This caused MUI-specific styling props (sx, color, variant, underline) to be lost.

Fix this by wrapping the children with MuiLink and setting its component prop to the router Link component.

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

What is the new behavior?

fixes (issue)

Notes for reviewers

The LinkRouter component inside Breadcrumb was wrapping children in a plain HTML <span> inside router Link component.

This caused MUI-specific styling props (sx, color, variant, underline) to be lost.

Fix this by wrapping the children with MuiLink and setting its component prop to the router Link component.
@changeset-bot

changeset-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f822775

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

1 participant