Make WordPress Core

#60404 closed defect (bug) (invalid)

Blog Post Button Style mismatch which need to be update

Reported by: rakibul33's profile rakibul33 Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.4.3
Component: General Keywords:
Focuses: ui, css Cc:

Description

when we do unit test for the button blog post we can see different types of button
round, square, and others as well.

so I discovered that for the square button, the style given to .is-style-squared in this class needed to be .is-style-squared this class.

here is the problem picture link:
https://drive.google.com/file/d/1kRa3v_IlvX1Mh4fRuxmyCiwCqDhMm7-m/view?usp=sharing

and here is the solution I have tried to do:
https://drive.google.com/file/d/1eM9wMm_iv2gd-PLGhD3r4jOiZcszGT9F/view?usp=sharing

so the core style. min.css This maybe it needs to be updated thank you.

Attachments (1)

attachment.zip (785.6 KB) - added by rakibul33 15 months ago.

Download all attachments as: .zip

Change History (2)

#1 @poena
15 months ago

  • Component changed from Post Formats to General
  • Keywords has-unit-tests removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi @rakibul33

If I understand correctly from the shared files, you are bringing up the button blocks in the older posts in the theme test data.
https://github.com/WordPress/theme-test-data

And it is showing as round, which is the default style, and you are expecting it to be square?

The square style was a custom block style for the button, which was removed from WordPress after this sample content was added to the XML file.
It was removed because users can now manually set the radius of the button block, so this style is not needed anymore.

It will only show as square on older WordPress versions, and in themes that manually add the square style using register_block_style().

This content in the XML file is only intended for testing old block markup.
Please see https://github.com/WordPress/theme-test-data/issues/79

Note: See TracTickets for help on using tickets.