korbit-ai[bot] commented on code in PR #32112: URL: https://github.com/apache/superset/pull/32112#discussion_r1938610226
########## superset-frontend/src/features/charts/ChartCard.tsx: ########## @@ -100,7 +100,7 @@ export default function ChartCard({ className="action-button" onClick={confirmDelete} > - <Icons.Trash iconSize="l" /> {t('Delete')} + <Icons.DeleteOutlined iconSize="l" /> {t('Delete')} Review Comment: ### Invalid prop passed to AntDesign icon <sub></sub> <details> <summary>Tell me more</summary> ###### What is the issue? The iconSize prop is being passed to AntDesign's DeleteOutlined icon component, but AntDesign icons don't support this prop, which could cause the icon to render incorrectly or not at all. ###### Why this matters This will cause the icon sizing to not work as expected, breaking the visual consistency of the UI. AntDesign icons use different props for sizing like 'style={{ fontSize: size }}' or the 'size' prop. ###### Suggested change ∙ *Feature Preview* Replace the iconSize prop with the appropriate AntDesign icon sizing method. For example: ```tsx <Icons.DeleteOutlined style={{ fontSize: 16 }} /> {t('Delete')} ``` or if using a custom wrapper: ```tsx <Icons.DeleteOutlined size={16} /> {t('Delete')} ``` </details> <sub> [](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/3fe12402-496e-4ac1-9cb9-2f92b6a59b24?suggestedFixEnabled=true) 💬 Chat with Korbit by mentioning @korbit-ai. </sub> <!--- korbi internal id:38e7821d-077d-4ec1-8424-7f35dea7544a --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org