Skip to content

Conversation

@jeremyfelt
Copy link
Member

  • Wrap {buttonText} with a <span> element.
  • Prevent pointer events on the <span> so that clicks on the button area work as expected.
  • Move editor-specific styles to index.css to be loaded only in the editor context.
  • Add deprecated version of the saved block markup for WordPress to more easily upgrade it.

Fixes #31

* Wrap `{buttonText}` with a `<span>` element.
* Prevent pointer events on the `<span>` so that clicks on the
  button area work as expected.
* Move editor-specific styles to `index.css` to be loaded only in
  the editor context.
* Add deprecated version of the saved block markup for WordPress to
  more easily upgrade it.

Fixes #31
@jeremyfelt jeremyfelt merged commit 768ad39 into trunk Jun 11, 2025
3 checks passed
@jeremyfelt jeremyfelt deleted the feature/add-span-markup branch June 11, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrap button text in span

2 participants