material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Custom action icon smaller than default edit icon.

Open jeffjvick opened this issue 7 years ago • 4 comments

Describe the bug I have a table with the built-in edit action (editable) enabled and one custom action. The custom action icons are smaller than the built-in edit one. To make this more clear in the screenshot I assigned the custom action the 'edit' icon so you can see the size difference.

To Reproduce Create a custom action and assign the 'edit' icon to it. Make the row editable.

Expected behavior Custom action icons should be the same size as the default icons. Unless there is something I'm missing.

Screenshots Screen Shot 2019-07-16 at 11 34 47 PM

jeffjvick avatar Jul 17 '19 06:07 jeffjvick

Also running into this issue

nwbhatia avatar Jul 17 '19 17:07 nwbhatia

@jeffjvick can you remind me how you changed the icon size for custom action buttons?

nwbhatia avatar Jul 18 '19 14:07 nwbhatia

@nikhilwbhatia the only way is to update fontSize = "small" to default in node_modules/src/components/m-table-action.js

Usually you should be able to change it via iconProps, but currently the small font-size is being applied after iconProps and is overriding whatever value you pass to it.

I've created a pull request to fix this issue.

stoil-terziev avatar Jul 18 '19 19:07 stoil-terziev

Thank you!

nwbhatia avatar Jul 25 '19 14:07 nwbhatia