[wp-trac] [WordPress Trac] #61265: Add class name for block variations
WordPress Trac
noreply at wordpress.org
Wed Sep 18 00:18:37 UTC 2024
#61265: Add class name for block variations
------------------------------------------+---------------------
Reporter: Bernhard Reiter | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.7
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing-info | Focuses:
------------------------------------------+---------------------
Comment (by jessedyck):
== Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/6602
=== Environment
- WordPress: 6.7-alpha-58576-src
- PHP: 8.2.14
- Server: nginx/1.25.3
- Database: mysqli (Server: 8.0.39 / Client: mysqlnd 8.2.14)
- Browser: Safari 17.6
- OS: macOS
- Theme: Twenty Twenty-Four 1.2
- MU Plugins: None activated
- Plugins:
* Test Reports 1.1.0
=== Steps to Test
1. Open a Post post in edit mode
2. Add a 'Categories' block (or any other block variation) to the page
content. Settings for the block can be the default
2. Assign the 'Uncategorized' category to the post and publish the post
2. View the front end of the site
3. Inspect the 'Uncategorized' text (the Categories block) and ensure that
the markup contains a new class showing the active variation
=== Expected Results
- ✅ An additional class should be added to the block, using the format
`wp-block-<block name>-<variation name>`
==== Actual Results
- ✅ The class `wp-block-post-terms-category` is added to the block
=== Additional Notes
- I tested using the default WP develop repo following the Readme's
instructions, and used `gh pr checkout 6602` to check out the specific PR
=== Supplemental Artifacts
Before patch:
[[Image(61265-test-before.jpg)]]
After patch:
[[Image(61265-test-after.jpg)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61265#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list