We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91899e commit d7b0414Copy full SHA for d7b0414
core/src/utils/theme.ts
@@ -205,8 +205,8 @@ export const applyComponentTheme = (element: HTMLElement): void => {
205
// Convert 'ION-CHIP' to 'ion-chip' and split into parts
206
const parts = element.tagName.toLowerCase().split('-');
207
208
- // Remove 'ion-' prefix to get 'chip'
209
- const componentName = parts.slice(1).join('-');
+ // Get the component name 'chip' from the second part
+ const componentName = parts[1];
210
211
// Convert to 'IonChip' by capitalizing each part
212
const themeLookupName = parts.map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join('');
0 commit comments