fix menu button size, including fixing the additional 2-3px bottom padding from the button element
Confirming vertical-align is the functionality that we want:
Differential D3331
[web] [fix] update menu button size, correct addition bottom padding • benschac on Mar 3 2022, 7:53 AM. Authored by Tags None Referenced Files
Details fix menu button size, including fixing the additional 2-3px bottom padding from the button element Confirming vertical-align is the functionality that we want: check the figma file, additionally, if you want to render the component locally, set the false conditions in thread-menu menu items to true
Diff Detail
Event Timeline
Comment Actions
Can we just change that to avoid having to hack around it? There's been a lot of churn getting these icons integrated correctly... hopefully we could batch this SVG change with the existing task for integrating all icons (https://linear.app/comm/issue/ENG-822/import-all-icons-from-swm-icon-pack)? Alternatively, noticed in the SWMansionIcon v2 Dribbble post (https://dribbble.com/shots/17310944-Icons-Figma-Plugin-SWM-Icon-Pack) that there's an accompanying package: https://github.com/kamilagraf/react-swm-icon-pack. Is this something we should consider using instead? The SWM team might have more context on the state of this package, if it's maintained by SWMansion, etc? cc: @palys-swm @def-au1t @karol-bisztyga @adrian @marcinwasowicz
Comment Actions ADDRESS INLINE COMMENT BEFORE LANDING
Comment Actions I don't knot why having display: inline-block on icons is an issue... it sounds reasonable, and if we want a different behavior, we should wrap it in a tag with different display. Regarding the icon pack, I would need to ask some people. This project on github isn't hosted on official Software Mansion account - not sure what's the reason for that.
Comment Actions
instead of changing the display of inline block I just changed the behavior of SVG in button elements to align correctly per https://stackoverflow.com/questions/24626908/how-to-get-rid-of-extra-space-below-svg-in-div-element. I think this solution makes the most sense. |