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

Latest Posts Widget: Adding class for the title #20618

Closed
dashkevych opened this issue Mar 4, 2020 · 1 comment
Closed

Latest Posts Widget: Adding class for the title #20618

dashkevych opened this issue Mar 4, 2020 · 1 comment
Labels
[Block] Latest Posts Affects the Latest Posts Block [Type] Enhancement A suggestion for improvement.

Comments

@dashkevych
Copy link

dashkevych commented Mar 4, 2020

It looks like all sections in this widget have a special CSS class except the title. Here is a screenshot:

HTML of the Latest Posts Widget

It would be great if the title had a CSS class as well. For example, wp-block-latest-posts__post-title

Currently, we need to use these CSS selectors to make style changes for the title: .wp-block-latest-posts li > a

By having a special CSS class for the title, we can avoid have long selectors when styling the title in the Latest Posts widget.

WordPress version: 5.4-RC1-47424

@talldan talldan added [Block] Latest Posts Affects the Latest Posts Block [Type] Enhancement A suggestion for improvement. labels Mar 5, 2020
@skorasaurus
Copy link
Member

Thanks for reporting; this has been fixed in #38740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Latest Posts Affects the Latest Posts Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants