CSS Bugs
-
Hello,
There are some bugs in the current version of WPMM that are causing CSS issues. The CSS issue is triggering an accessibility issue for ADA compliance.
Essentially, the CSS is being written out with no value; ie: “padding-left: px !important”
Line 929 of class.wp-megamenu-base.php is using isset() instead of !empty() like the other lines in that section. The same issue exists on lines 947 and 964.
Also if you’re concerned about not clogging up the logs with NOTICE and WARNING messages, and we all should be, you should be checking for both isset() and !empty();
if ( isset( $options['options']['single_menu_padding_left'] ) && ! empty( $options['options']['single_menu_padding_left'] ) ) { $style .= "padding-left: {$options['options']['single_menu_padding_left']}px !important;"; }
…or maybe include support for non-px units, with px as the default?
if ( isset( $options['options']['single_menu_padding_left'] ) && ! empty( $options['options']['single_menu_padding_left'] ) ) { if ( is_numeric( $options['options']['single_menu_padding_left'] ) ) { $style .= "padding-left: {$options['options']['single_menu_padding_left']}px !important;"; } else { $style .= "padding-left: {$options['options']['single_menu_padding_left']} !important;"; } }
m.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘CSS Bugs’ is closed to new replies.