Skip to content

Plugin Directory: Scope the plugin card pointer cursor to the cards, not the container#665

Closed
derpaschi wants to merge 2 commits into
WordPress:trunkfrom
derpaschi:fix/plugin-cards-pointer-style
Closed

Plugin Directory: Scope the plugin card pointer cursor to the cards, not the container#665
derpaschi wants to merge 2 commits into
WordPress:trunkfrom
derpaschi:fix/plugin-cards-pointer-style

Conversation

@derpaschi
Copy link
Copy Markdown

What

The plugin cards grid applied cursor: pointer to the entire .plugin-cards container. As a result the pointer cursor appeared over the grid gaps and padding — areas that aren't clickable — and not just over the cards themselves.

This change scopes the rule to .plugin-cards .is-style-cards-grid li, which lines it up with the existing :hover and :focus-within selectors that already target the individual cards.

Why

The pointer cursor is a clickability affordance. Showing it over the non-interactive container space is a little misleading, and it was inconsistent with the hover/focus styling that was already scoped to the cards. Tightening the selector keeps the cursor behaviour consistent with the rest of the card interactions.

Testing

  • Recompiled the theme styles; css/style.css and css/style-rtl.css are regenerated from the SCSS source.
  • Verified manually: hovering a plugin card shows the pointer cursor, while hovering the space between cards shows the default cursor.

Notes

This is a focused, presentational-only change with no markup or behaviour changes. Feedback very welcome — happy to adjust the selector if there's a preferred convention for this theme.

Copilot AI review requested due to automatic review settings June 4, 2026 09:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the cursor styling for plugin cards so the pointer cursor is applied more narrowly within the cards grid layout.

Changes:

  • Narrowed cursor: pointer styling from the entire .plugin-cards container to list items within .is-style-cards-grid.
Files not reviewed (2)
  • wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/css/style-rtl.css: Language not supported
  • wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/css/style.css: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to 3
.plugin-cards .is-style-cards-grid li {
cursor: pointer;
}
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props hubersen, obenland.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derpaschi Let's remove that file.

It looks like it's an unintended artifact from the sass options, probably worth a follow-up PR.

@derpaschi derpaschi requested a review from obenland June 4, 2026 12:18
@bazza bazza closed this in 1b0deb7 Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants