-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed as not planned
Labels
package: react@ionic/react package@ionic/react packagetype: buga confirmed bug reporta confirmed bug report
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
Current Behavior
Property style doesn't passing through an IonPage component
Expected Behavior
Property style should be passing to the actual IonPage element get rendered on the DOM
Steps to Reproduce
minimal ionic-react code
import { IonApp, IonContent, IonHeader, IonPage, IonTitle, IonToolbar, setupIonicReact } from '@ionic/react'
import '@ionic/react/css/core.css'
import { createRoot } from 'react-dom'
setupIonicReact()
createRoot(document.getElementById('root')).render(<IonApp>
<IonPage style={{ backgroundColor: 'black !important' }}>
<IonHeader>
<IonToolbar>
<IonTitle>My Title</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent>
Hello World
</IonContent>
</IonPage>
</IonApp>)Code Reproduction URL
Metadata
Metadata
Assignees
Labels
package: react@ionic/react package@ionic/react packagetype: buga confirmed bug reporta confirmed bug report