-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Open
Labels
needs: investigationThis issue is waiting on more investigation from the Ionic Team.This issue is waiting on more investigation from the Ionic Team.stencilIssues that require changes in StencilIssues that require changes in Stenciltype: feature requesta new feature, enhancement, or improvementa new feature, enhancement, or improvement
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
Please add ability to specify a css cascade layer for Ionic components (Vue or any framework) to use for styling. Although you can import the core styles into a layer like this:
@import '@ionic/vue/css/core.css' layer(ionic);But the component-specific styles are importing indirectly via the component (e.g., Vue/Vite), so there is no way to currently specify a layer for them.
Describe the Use Case
Tailwind v4 added native css cascade layers. So if Ionic components style without a layer, then Ionic always overrides private application styles using tailwind. If Ionic were to specify a layer, then it would enable the ability to override the styles.
Describe Preferred Solution
No response
Describe Alternatives
No response
Related Code
No response
Additional Information
No response
maudvd and aeharding
Metadata
Metadata
Assignees
Labels
needs: investigationThis issue is waiting on more investigation from the Ionic Team.This issue is waiting on more investigation from the Ionic Team.stencilIssues that require changes in StencilIssues that require changes in Stenciltype: feature requesta new feature, enhancement, or improvementa new feature, enhancement, or improvement