Skip to content

3.5: Replace deprecated dialogClass with classes#8978

Merged
tagliala merged 1 commit into3-0-stablefrom
bugfix/8977-unexpected-close-button
Mar 24, 2026
Merged

3.5: Replace deprecated dialogClass with classes#8978
tagliala merged 1 commit into3-0-stablefrom
bugfix/8977-unexpected-close-button

Conversation

@tagliala
Copy link
Copy Markdown
Contributor

jQuery UI 1.14 sets $.uiBackCompat to false by default, which disables the deprecated dialogClass option. This caused the 'active_admin_dialog' class to no longer be applied to the dialog wrapper, breaking the CSS selector that hides the titlebar close button.

Migrate to the classes option, which is the non-deprecated API for adding custom classes to widget elements.

Closes #8977

Screenshot

http://localhost:3000/admin/admin_users > Select All > Delete selected

Before (3-0-stable)

image

After (this branch)

image

jQuery UI 1.14 sets `$.uiBackCompat` to false by default, which disables
the deprecated `dialogClass` option. This caused the
`active_admin_dialog` class to no longer be applied to the dialog
wrapper, breaking the CSS selector that hides the titlebar close
button.

Migrate to the classes option, which is the non-deprecated API for
adding custom classes to widget elements.

Close #8977
@tagliala tagliala force-pushed the bugfix/8977-unexpected-close-button branch from 9229214 to 7baf787 Compare March 24, 2026 20:42
@tagliala tagliala changed the title Replace deprecated dialogClass with classes option for jQuery UI 1.14 3.5: Replace deprecated dialogClass with classes Mar 24, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (3-0-stable@345a5eb). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff              @@
##             3-0-stable    #8978   +/-   ##
=============================================
  Coverage              ?   99.19%           
=============================================
  Files                 ?      194           
  Lines                 ?     4974           
  Branches              ?        0           
=============================================
  Hits                  ?     4934           
  Misses                ?       40           
  Partials              ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@javierjulio javierjulio left a comment

Choose a reason for hiding this comment

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

Thanks!

@tagliala tagliala merged commit af42e12 into 3-0-stable Mar 24, 2026
29 checks passed
@tagliala tagliala deleted the bugfix/8977-unexpected-close-button branch March 24, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants