Skip to content

feat(theme): add MDXComponents/Li to swizzle config#11635

Merged
slorber merged 1 commit intofacebook:mainfrom
moskalakamil:feat/mdx-li-swizzle
Dec 29, 2025
Merged

feat(theme): add MDXComponents/Li to swizzle config#11635
slorber merged 1 commit intofacebook:mainfrom
moskalakamil:feat/mdx-li-swizzle

Conversation

@moskalakamil
Copy link
Copy Markdown
Contributor

@moskalakamil moskalakamil commented Dec 27, 2025

Pre-flight checklist

Covered by existing dogfooding script testSwizzleThemeClassic.mjs

  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

N/A - minor config addition, not a new API or substantial change

Motivation

MDXComponents/Li was missing from the swizzle config, causing it to appear at the bottom of the components list as "unsafe" by default. This made it harder to discover and inconsistent with other similar MDX components (Ul, A, Img, etc.) which are all marked as "safe".

Since Li is just as safe to swizzle as the rest of the MDXComponents family, this PR adds it to the config with safe status for both eject and wrap actions.

Test Plan

Run swizzle and node _dogfooding/testSwizzleThemeClassic.mjs in the website directory.
CleanShot 2025-12-27 at 15 27 58@2x

Test links

Deploy preview: https://deploy-preview-11635--docusaurus-2.netlify.app/

Related issues/PRs

@meta-cla meta-cla bot added the CLA Signed Signed Facebook CLA label Dec 27, 2025
@netlify
Copy link
Copy Markdown

netlify bot commented Dec 27, 2025

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit 86e5e1e
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/694fec2fc33df80008f497e0
😎 Deploy Preview https://deploy-preview-11635--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@slorber slorber added the pr: new feature This PR adds a new API or behavior. label Dec 29, 2025
Copy link
Copy Markdown
Collaborator

@slorber slorber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks 👍

@slorber slorber merged commit 4384b26 into facebook:main Dec 29, 2025
46 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: new feature This PR adds a new API or behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants