Was editing the wrong file. Edit the right file, and I got it working. doy.
https://www.implenton.com/alpine-js-directives-and-wordpress-sanitization/
I did have to switch from “@click” (shorthand) to “x-on:click”
Thanks John! Your suggestion got me Googling in the right direction.
I appreciate that direction, it has given me new angles to Google.
I’ve found the following:
https://github.com/AdvancedCustomFields/acf/issues/453
https://www.implenton.com/alpine-js-directives-and-wordpress-sanitization/
Nothing quite working just yet. But a new batch of Google Search tabs is still progress.
Hard to say without seeing your CSS.
You can use is_admin() to output something only for the WP dashboard. You could toss in some CSS that only is on the WP admin to fix your render.
https://developer.wordpress.org/reference/functions/is_admin/