Opened 5 months ago
Last modified 3 months ago
#62255 new defect (bug)
Twenty Twenty: Latest Posts blocks have no link hover effects in entry content
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch has-screenshots needs-testing |
Focuses: | css | Cc: |
Description
In Theme Twenty Twenty,
The latest Posts Block has no hover effects like in another theme
I have added a patch for it
Attachments (4)
Change History (9)
#3
@
3 months ago
Test Report
Description
This report validates whether the indicated patch works as expected.
Patch tested: https://core.trac.wordpress.org/attachment/ticket/62255/62255.patch
Environment
- WordPress: 6.8-alpha-59560
- PHP: 8.1.29
- Server: nginx/1.16.0
- Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.29)
- Browser: Chrome 131.0.0.0
- OS: macOS
- Theme: Twenty Twenty
Actual Results
- ✅ Issue resolved with patch.
Additional Notes
Hi @pitamdey,
Thank you for bringing this up. I was able to reproduce the issue and have tested the patch. The fix successfully resolves the problem by adding an underline on hover.
Supplemental Artifacts
@
3 months ago
Moves link styles for Latest Posts, Latest Comments, Categories (List), and Archives blocks to the Widgets section of the stylesheet (after Entry Content)
#4
@
3 months ago
- Focuses css added
- Summary changed from Twenty Twenty : Latest Posts Block have no hover effects to Twenty Twenty: Latest Posts blocks have no link hover effects in entry content
Related: Issue 442 / PR 548
The Latest Posts links have an underline on hover/focus when in a widget area, but the Entry Content styles are later in the stylesheet and override block styles within the post content.
Using !important
is too much, and I would prefer not to increase specificity either (as PR 548 did for Latest Comments). The link styles for Latest Posts and similar blocks could be moved after the Entry Content styles.
I did not notice a difference when changing the editor stylesheets, so I did not include those in 62255.1.patch.
Editor View