File tree Expand file tree Collapse file tree 5 files changed +42
-21
lines changed
js/siteorigin-panels/dialog Expand file tree Collapse file tree 5 files changed +42
-21
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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
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.
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 ;
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 {
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 {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments