Closed Android63 closed 6 years ago
Latest visual reference for buttons.
Make sure buttons inserted into posts display properly
Thinking about how users might add buttons to posts/pages:
Whilst I guess they could add HTML markup, that's not too friendly.
A plugin such as Forget About Shortcode Buttons offers a nice solution (especially since it doesn't rely on shortcodes that stop working if the plugin is disabled), but I know we don't want to rely on 3rd party plugins if we can avoid it.
I could build a shortcode into the theme. That gives users an easy way to create buttons, but it doesn't add a nice button icon to the editor toolbar...
Any thoughts on this @cehwitham?
Having discussed this with Chris, the MVP solution is to allow users to manually add css classes to links through the “Text” edit screen. Although this isn't super user-friendly, it's a good enough solution for now and we can educate users. At a later stage, we might use a Gutenberg button block.
The MVP solution is working fine with links styled as follows:
<a href="#" class="c-btn c-btn--submit">Submit</a>
Things that people click to make stuff happen