Skip to content

docs(playground): use className in react snippets - #4890

Merged
thetaPC merged 1 commit into
docs/vue-code-fencesfrom
docs/react-classname
Nov 23, 2026
Merged

thetaPC merged 1 commit into
docs/vue-code-fencesfrom
docs/react-classname

Conversation

@thetaPC

@thetaPC thetaPC commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Issue URL: N/A

What is the current behavior?

  • Some React playground snippets set class on Ionic components, such as <IonContent class="ion-padding">. React uses className, and the rest of the React snippets already do.

What is the new behavior?

  • Those snippets use className, in v9 and v8.

Does this introduce a breaking change?

  • Yes
  • No

Other information

How to test

  1. Open the preview's Grid Horizontal Alignment playground and select React. The code uses className, and opening it in StackBlitz gives a working project where the rows still align.
  2. Repeat with Popover Positioning. The popover content keeps its padding.

@thetaPC
thetaPC added this pull request to stack #4889 November 20, 2026 23:12
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-docs Ready Ready Preview Nov 23, 2026 11:37pm UTC

Request Review

@ShaneK ShaneK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! 🚀

@thetaPC
thetaPC force-pushed the docs/react-classname branch from b89f9cc to d1ede9f Compare November 23, 2026 23:37
@thetaPC
thetaPC marked this pull request as ready for review November 23, 2026 23:40
@thetaPC
thetaPC requested a review from a team as a code owner November 23, 2026 23:40
@thetaPC
thetaPC merged commit 7005ae9 into main Nov 23, 2026
7 checks passed
@thetaPC
thetaPC deleted the docs/react-classname branch November 23, 2026 23:45

This branch was successfully deployed

1 active deployment
Preview — d1ede9f1 Deployed Nov 23, 2026 by vercel[bot]
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.

2 participants