Buttons in hero section on landing pages do only work if you click on the text. If you click the button outside, nothing happens. The classes "btn btn-lg" are added to a surrounding DIV not the anchor tag.
To solve the issue remove the classes "btn btn-lg" from the div in paragraph--button--default.html.twig
But now the classes need to be added to the anchor tag.
There are several options:
Use:
https://www.drupal.org/project/link_class or
https://www.drupal.org/project/link_attributes
or write your own Fieldformatter for Links inside the social_landing_page module.
Any suggestions or ideas what the prefered way could be?
Comments
Comment #2
slowflyer commentedPull request and more explanation here:
https://github.com/goalgorilla/open_social/pull/1033
Comment #3
bramtenhove commentedThanks a lot slowflyer! It landed in 3.1