You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/igniteui-react-customize-theme/SKILL.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,15 +183,15 @@ function AdminPanel() {
183
183
184
184
### Inline Styles on a Wrapper
185
185
186
-
For quick one-off overrides, you can apply CSS custom properties via inline styles:
186
+
For truly dynamic one-off overrides, you can apply CSS custom properties via inline styles. **Prefer CSS classes or CSS modules** for better type safety and maintainability — use inline styles only when values need to change at runtime:
> **Note:** TypeScript requires the `as React.CSSProperties` cast because CSS custom properties are not in the standard `CSSProperties` type.
194
+
> **Note:** TypeScript requires the `as React.CSSProperties` cast because CSS custom properties are not in the standard `CSSProperties` type. This bypasses type safety — prefer CSS classes when possible.
0 commit comments