New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot override mode styles on many components #17608
Comments
I believe certain components need be updated to include the following:
I'm not sure why this was removed as it looks intentional, but will look into this. |
This has been added for the It can be used like the following: ion-item.md {
// MD styles
}
ion-item.ios {
// iOS styles
} Note that this is only a problem for components that are being used inside of a shadow element. If using light DOM you can still use the documented way to style by mode. |
…ionic-team#17838) - removes mode-less component classes from the internal CSS, use element instead - adds mode specific classes `md` or `ios` for styling inside of shadow components - adds e2e test that verifies mode classes exist on all ionic components, plus checks for specific classes that the components need for internal styling fixes ionic-team#17608
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
The docs for overriding mode styles aren't accurate for several components, e.g.
The text was updated successfully, but these errors were encountered: