Unfiltered HTML and Accessibility
-
Concerning your note
I am not sure if it’s currently a bug in Gutenberg: this block requires an input in the generated HTML but for some reason, Gutenberg removes it from the DOM while saving. This issue only happens for author/editors, but not for admins (which is even more weird).
This is actually not that weird. On single sites, administrators can use unfiltered HTML but not other roles. Note that only super-admins are allowed to this on multisite.
Maybe this will point you in the right direction: https://wordpress.stackexchange.com/questions/327949/custom-gutenberg-block-and-unfiltered-html-capability
—
Unfortunately, the resulting HTML is also not accessible. Perhaps you can take some pointers from this article: https://alvaromontoro.com/blog/68017/creating-a-css-only-toggle-switch
I like that the plugin is lightweight, and the block is simple. But because of the above-mentioned limitations, I won’t use it.
- The topic ‘Unfiltered HTML and Accessibility’ is closed to new replies.