-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
SvgIcon viewBox hardcoded #747
Copy link
Copy link
Closed
Labels
component: SvgIconThe React component.The React component.scope: stylesSpecific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
Metadata
Metadata
Assignees
Labels
component: SvgIconThe React component.The React component.scope: stylesSpecific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
I am trying to use an existing SVG icon with the
svg-icon.jsxcomponent, and theviewBoxis hardcoded to0 0 24 24which crops out my icon. My icon is drawn on a larger scale and needs a different view box to be set. I couldn't see a way to affect this property and I'd rather not rescale all my icon assets to the 24px view box.Do you recommend extending this component, or do you think this should be configurable?
Thanks!