| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | ]; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public static function get_css( $attribute_value, $property = '', $device = '' ) { |
| 34 | - $default_attar_value = self::get_attribute_default_value( (bool) $device ); | |
| 34 | + $default_attar_value = $device ? self::responsive_defaults() : self::get_attribute_default_value( false ); | |
| 35 | 35 | $value = wp_parse_args( $attribute_value, $default_attar_value ); |
| 36 | 36 | $css = []; |
| 37 | 37 | if ( $value[ 'zIndex' . $device ] ) { |
| 38 | 38 | $css[ $property ] = $value[ 'zIndex' . $device ]; |