Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing a button's size resets the selected style to the default #36

Open
Cheffheid opened this issue Sep 6, 2024 · 0 comments
Open

Comments

@Cheffheid
Copy link
Contributor

When I add a button to the editor, select a style, and then change the size of the button the style of the button resets to the default.

I suspect this might have something to do with the custom Edit implementation inside of /js/block-filters/buttons.js, and might be related to it setting just the size class back onto the button and in the process it strips any is-style-* classes that might already be set.

A workaround is available in that you can set the size first and then the style, so it's not a super urgent thing to fix but it would definitely improve the quality of life of working with buttons in the editor.

Here's a quick gif to help visualize what I'm seeing:
buttons

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

No branches or pull requests

1 participant