Skip to content

Commit 415c44c

Browse files
authored
fix(react): remove incorrect class key from IonicReactProps (#27432)
Issue number: N/A --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> As noted in #27415, `IonicReactProps` still has `class` as an exposed attribute on Ionic React components. React components should use the `className` property instead. It looks like this was left over code from the Ionic React beta that never got removed. `class` was originally added in c79e74b#diff-065219c56a8c5dfc32564fac317b8cc9c03f1fbcb7f9cc2de0c5581970f21b51 And `className` was added in ab0f92e#diff-065219c56a8c5dfc32564fac317b8cc9c03f1fbcb7f9cc2de0c5581970f21b51 ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Removes the `class` key ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
1 parent e0a5e49 commit 415c44c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export interface IonicReactProps {
2-
class?: string;
32
className?: string;
43
style?: { [key: string]: any };
54
}

0 commit comments

Comments
 (0)