Skip to content

fix: Remove tooltip from enquiry modal close button#2673

Closed
RabbiIslamRony wants to merge 4 commits intosovware:developmentfrom
RabbiIslamRony:formgent-close-button-issue
Closed

fix: Remove tooltip from enquiry modal close button#2673
RabbiIslamRony wants to merge 4 commits intosovware:developmentfrom
RabbiIslamRony:formgent-close-button-issue

Conversation

@RabbiIslamRony
Copy link
Member

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Security fix
  • Improvement
  • New Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Text changes
  • Other... Please describe:

Description

Removes unwanted "Close" tooltip from enquiry modal close button using WordPress Modal API.

Solution:

  • Use isDismissible={false} to disable default WordPress Modal close button
  • Implement custom close button without tooltip
  • Minimal useEffect to position button in modal header
  • Remove margin-top from modal content for better spacing

Approach:
Uses WordPress Modal's native isDismissible API instead of hiding tooltips, following senior developer's recommendation for a cleaner solution.

How to test

  1. Go to Dashboard → My Enquiries
  2. Click "View" on any enquiry
  3. Hover over close button (X icon) in modal header
  4. Expected: No tooltip appears, button works normally

Any linked issues

Fixes tooltip display issue in enquiry details modal close button.

Checklist

Armanul46 and others added 4 commits February 3, 2026 14:38
- Use isDismissible={false} to disable default WordPress Modal close button
- Implement custom close button without tooltip
- Add minimal useEffect to move button to modal header
- Remove margin-top from modal content for better spacing
- Optimize code using modern JavaScript best practices

Uses WordPress Modal API (isDismissible) for clean solution.
Custom button positioned in header without any tooltip text.

Fixes: Tooltip display issue when hovering over modal close button
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.

2 participants