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

Hide drag-and-drop helper text on mobile devices when previewing patterns #69159

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

yogeshbhutkar
Copy link
Contributor

@yogeshbhutkar yogeshbhutkar commented Feb 12, 2025

What, Why and How?

Closes #69158

This PR hides the Drag and Drop helper text on the Patterns Preview page in the Global Inserter for mobile devices, as the text is not actionable or relevant on smaller screens.

The display: none property is used to hide the helper text on mobile breakpoints.

Testing Instructions

  1. Navigate to the post/page edit page.
  2. Toggle the Global Inserter.
  3. Navigate to the patterns tab.
  4. Confirm the helper text on mobile devices is not visible.

Screenshots

Before After
bug pr

@yogeshbhutkar yogeshbhutkar marked this pull request as ready for review February 12, 2025 09:16
Copy link

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.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: yogeshbhutkar <[email protected]>

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

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Feature] Inserter The main way to insert blocks using the + button in the editing interface Mobile Web Viewport sizes for mobile and tablet devices labels Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface Mobile Web Viewport sizes for mobile and tablet devices [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hide Drag and Drop Helper Text on pattern-category-previews for Mobile Devices
2 participants