Tile component adds or removes padding when flush parameter is set to false or true, but I don’t see a way to control the amount of padding.
Text component adds a margin-bottom that I´m not able to remove.
That should solve the styling.
Thanks in advance!
Hi @jonchim,
Thanks for you reply. Tried adding gap=“flush” on Flex element but it just removes the vertical spacing between the Tiles elements, not the text blocks inside the Tile wrapper.
Thank you!
This worked like a charm to remove margin-bottom on Text elements. The only thing that I don’t know how to do it, is removing the padding of the Tile. I don’t seee any other component that could work, as Box component is behaving the same way.
no problem @Egoi !
Unfortunately i’m not seeing anything that would remove that padding. I believe it’s default from HubSpot. Does it have to live in a tile/box? Can you separate it with dividers?
Thanks so much for your feedback. Hot off the press: we just released a ‘compact’ prop in Tile to help you with more spacing control. Here’s the docs. Let me know if I can help in any other way / if you have more feedback
Thank you @aanchalsheth!
It looks better now, not exatcly as the native HubSpot card but closer. It would be nice if we could have the same spacing as the original HubSpot component
HubSpot card uses a 8px 12px padding while compact parameter adds 20px 20px to Tile component as seen in the image below. Let me know for any update! Thank you!