vanilla-hamburger icon indicating copy to clipboard operation
vanilla-hamburger copied to clipboard

Total size hard coded to 48px

Open helhum opened this issue 4 years ago • 1 comments

May be I'm missing something, but could it be the that the total size of the icon is hard coded to 48px?

It is possible to set the icons size, but this will "only" reduce the size of the icon and at the same time increase the surrounding margin.

Is there a reason for that? If not, would you accept a pull request to change that?

helhum avatar Jun 18 '21 07:06 helhum

Hello, this is actually by design: using 48px helps to reserve enough space to make it easy to tap on mobile.

Please check the original project README: https://github.com/luukdv/hamburger-react#accessibility

web-padawan avatar Jun 19 '21 09:06 web-padawan