WordPress / twentytwentyfive

154 stars 107 forks source link

Uniform Way of Registering Block Style #236

Closed codersantosh closed 1 month ago

codersantosh commented 2 months ago

Description I noticed that all block styles are being registered through JSON. Is there a specific reason why the "Checkmark" style is being registered via PHP?

carolinan commented 2 months ago

Great question. I can't think of any other reasons than:

If this checkmark needs to look different in different style sections we might have to reconsider. Otherwise there is no benefit to using a uniform way of registering block styles, its case by case.

carolinan commented 1 month ago

In my quick test, I did not find any issues with the checkmark across the variations. It does not define a color, so there are no contrast issues. So I am closing this issue.