Skip to content

Commit bf585d0

Browse files
committed
Merge branch 'release/2.32.1'
2 parents 22bb08f + 18e562f commit bf585d0

File tree

5 files changed

+42
-21
lines changed

5 files changed

+42
-21
lines changed

changelog.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
== Changelog ==
22

3+
= 2.32.1 – 29 June 2025 =
4+
* Mode Switcher: Restored mobile CSS hide functionality for improved responsive behavior.
5+
* Mode Switcher: Removed legacy CSS and moved .so-mode to .so-toolbar for cleaner structure.
6+
* Widget Dialog: Removed focus delay and improved default field handling for better user experience.
7+
* Fixed button secondary color scheme inheritance for consistent styling.
8+
* Fixed widget editable title class for proper functionality.
9+
* Resolved LESS linting issues for improved code quality.
10+
311
= 2.32.0 – 13 June 2025 =
412
* Background Image: Added Alt Text setting for improved accessibility.
513
* Layout Block: Added additional PanelsData check and prevented potential JavaScript null quirk.

css/admin.less

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@
445445
}
446446

447447
&:focus .title .actions a,
448-
&:focus-within .title .actions a, {
448+
&:focus-within .title .actions a {
449449
display: inline-block;
450450
}
451451

@@ -746,8 +746,6 @@
746746
opacity: 0.9;
747747
pointer-events: none;
748748
border: 1px solid rgba( 0,0,0,0.35 ) !important;
749-
750-
.siteorigin-panels-builder.so-rows-container.so-row-container.so-cells.cell.widgets-container.so-widget;
751749
}
752750

753751
// CSS for Layout Builder, Layout Form Field, and other instances of PB inside of widgets.
@@ -1233,6 +1231,10 @@
12331231
border-top: 1px solid @border_color;
12341232
z-index: 100002; // 1 more than the rest to ensure dropdowns etc appear above the other content.
12351233

1234+
.so-mode {
1235+
display: none;
1236+
}
1237+
12361238
.so-status {
12371239
float: left;
12381240
padding-top: 6px;
@@ -1290,13 +1292,6 @@
12901292

12911293
}
12921294

1293-
@media (max-width: 980px) {
1294-
1295-
.so-mode.button-secondary.so-mode {
1296-
display: none;
1297-
}
1298-
}
1299-
13001295
@media (min-width: 980px) {
13011296

13021297
.save-buttons {
@@ -1307,6 +1302,18 @@
13071302
.button-primary.so-saveinline {
13081303
border-bottom-right-radius: 0;
13091304
border-top-right-radius: 0;
1305+
margin-right: -1px;
1306+
}
1307+
1308+
.so-button-mode {
1309+
border-bottom-left-radius: 0;
1310+
border-top-left-radius: 0;
1311+
border-left: 1px solid rgba(0, 0, 0, 0.1);
1312+
1313+
// Prevent JavaScript from hiding this button when switching modes.
1314+
&.so-mode {
1315+
display: flex !important;
1316+
}
13101317
}
13111318

13121319
.so-mode {

js/siteorigin-panels/dialog/widget.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,13 @@ module.exports = panels.view.dialog.extend( {
9898
}.bind( this ) );
9999

100100
this.on( 'open_dialog_complete', function() {
101-
// The form isn't always ready when this event fires.
102-
setTimeout( function() {
103-
var focusTarget = $( '.so-content .siteorigin-widget-field-repeater-item-top, .so-content input, .so-content select' ).first();
104-
if ( focusTarget.length ) {
105-
focusTarget.trigger( 'focus' );
106-
} else {
107-
$( '.so-panels-dialog-wrapper .so-title' ).trigger( 'focus' );
108-
}
109-
}, 1250 )
101+
// If the title isn't visible, focus the first input.
102+
const focusTarget = this.$( '.so-title-editable' );
103+
if ( focusTarget.length ) {
104+
focusTarget.trigger( 'focus' );
105+
} else {
106+
this.$( '.so-content .siteorigin-widget-field-repeater-item-top, .so-content input, .so-content select' ).first().trigger( 'focus' );
107+
}
110108
} );
111109
},
112110

readme.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ SiteOrigin offers a single premium plugin that enhances and extends Page Builder
121121

122122
== Changelog ==
123123

124+
= 2.32.1 – 29 June 2025 =
125+
* Mode Switcher: Restored mobile CSS hide functionality for improved responsive behavior.
126+
* Mode Switcher: Removed legacy CSS and moved .so-mode to .so-toolbar for cleaner structure.
127+
* Widget Dialog: Removed focus delay and improved default field handling for better user experience.
128+
* Fixed button secondary color scheme inheritance for consistent styling.
129+
* Fixed widget editable title class for proper functionality.
130+
* Resolved LESS linting issues for improved code quality.
131+
124132
= 2.32.0 – 13 June 2025 =
125133
* Background Image: Added Alt Text setting for improved accessibility.
126134
* Layout Block: Added additional PanelsData check and prevented potential JavaScript null quirk.

tpl/js-templates.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class="<?php esc_attr_e( 'so-row-color so-row-color-' . $name ); ?>{{% if( rowCo
293293
<input type="button" class="button-primary so-close" tabindex="0" value="<?php esc_attr_e( 'Done', 'siteorigin-panels' ); ?>" />
294294

295295
<span
296-
class="button-secondary dashicons so-mode"
296+
class="button-primary so-button-mode dashicons so-mode"
297297
tabindex="0"
298298
aria-label="<?php esc_attr_e( 'Access Modes', 'siteorigin-panels' ); ?>"
299299
role="button"
@@ -381,7 +381,7 @@ class="cell-resize-direction dashicons dashicons-arrow-left"
381381
<input type="button" class="button-primary so-save" tabindex="0" value="<?php esc_attr_e( 'Done', 'siteorigin-panels' ); ?>" />
382382

383383
<span
384-
class="button-secondary dashicons so-mode"
384+
class="button-primary so-button-mode dashicons so-mode"
385385
tabindex="0"
386386
aria-label="<?php esc_html_e( 'Access Modes', 'siteorigin-panels' ); ?>"
387387
role="button"

0 commit comments

Comments
 (0)