When using (for instance) a standard HubSpot rich text module in a drag and drop template. There is the ability to adjust styles based on desktop / mobile. Is there a way to incorporate that same behavior when building/using a custom module? Right now, I can only set one set of styles no matter which option I am toggled on.
can confirm @A_Wessolly - I can edit those values in a custom theme with a custom module.
Pro tipp:It's a bit more work but definately possible - If you're creating a custom module you can put as many styling options into it as you wish. You don't necessary need the "mobile" toggle. You could add a spacing element for desktop, one for tablet and one for mobile into it and write
can confirm @A_Wessolly - I can edit those values in a custom theme with a custom module.
Pro tipp:It's a bit more work but definately possible - If you're creating a custom module you can put as many styling options into it as you wish. You don't necessary need the "mobile" toggle. You could add a spacing element for desktop, one for tablet and one for mobile into it and write
i just tried it in my theme and it looks like it is only possible for now to have seperate values for those in your Screenshot: Visibility, Hide and Alignment/spacing. If you change a value in Desktop and try to set one for mobile, it resets the Desktop value, regardless of the type of the module ( default or custom module).
However, this can of course mitigated with CSS. You can write a media query for mobile ( which would be in fact the better option) screen.