-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to reduce size of radio/checkbox #10781
Comments
@barbalex I would like to add a documentation section about the selection controls overrides. You can do something like: import React from "react";
import Checkbox from "material-ui/Checkbox";
import CheckBoxOutlineBlankIcon from "material-ui-icons/CheckBoxOutlineBlank";
import CheckBoxIcon from "material-ui-icons/CheckBox";
function Checkboxes(props) {
return (
<Checkbox
style={{ width: 36, height: 36 }}
icon={<CheckBoxOutlineBlankIcon style={{ fontSize: 20 }} />}
checkedIcon={<CheckBoxIcon style={{ fontSize: 20 }} />}
/>
);
}
export default Checkboxes; https://codesandbox.io/s/l7jr4207j7 Do you want to work on it? |
@barbalex |
@wasyster You can find this demo live in https://material-ui.com/demos/selection-controls/#checkboxes. We are working on migrating all our demos to TypeScript: #14897. |
@oliviertassinari import CheckBoxOutlineBlankIcon from 'material-ui-icons/CheckBoxOutlineBlank'; "Cannot find module 'material-ui-icons/CheckBoxOutlineBlank'.ts(2307)" But if I change import for this, it exist and works: |
@wasyster It's outdated. Use the documentation website. |
Expected Behavior
The standard size of 48x48px for Radios and Checkboxes is way to large for long lists on Desktop.
(How) Can this size be reduced without ending up overriding lots of settings set by material?
The text was updated successfully, but these errors were encountered: