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.
2 parents bd3cef0 + d7b0414 commit 0a09182Copy full SHA for 0a09182
core/src/utils/theme.ts
@@ -231,8 +231,8 @@ export const applyComponentTheme = (element: HTMLElement): void => {
231
// Convert 'ION-CHIP' to 'ion-chip' and split into parts
232
const parts = element.tagName.toLowerCase().split('-');
233
234
- // Remove 'ion-' prefix to get 'chip'
235
- const componentName = parts.slice(1).join('-');
+ // Get the component name 'chip' from the second part
+ const componentName = parts[1];
236
237
// Convert to 'IonChip' by capitalizing each part
238
const themeLookupName = parts.map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join('');
0 commit comments