IE11: Fix grid layout for advanced filters line items
This commit is contained in:
parent
847b59246d
commit
5724aed4cb
|
@ -215,7 +215,7 @@ class DateFilter extends Component {
|
|||
} );
|
||||
/*eslint-disable jsx-a11y/no-noninteractive-tabindex*/
|
||||
return (
|
||||
<fieldset tabIndex="0">
|
||||
<fieldset className="woocommerce-filters-advanced__line-item" tabIndex="0">
|
||||
<legend className="screen-reader-text">{ labels.add || '' }</legend>
|
||||
<div
|
||||
className={ classnames( 'woocommerce-filters-advanced__fieldset', {
|
||||
|
|
|
@ -9,6 +9,7 @@ import { partial, findIndex, difference, isEqual } from 'lodash';
|
|||
import PropTypes from 'prop-types';
|
||||
import Gridicon from 'gridicons';
|
||||
import interpolateComponents from 'interpolate-components';
|
||||
import classnames from 'classnames';
|
||||
|
||||
/**
|
||||
* WooCommerce dependencies
|
||||
|
@ -234,7 +235,10 @@ class AdvancedFilters extends Component {
|
|||
/>
|
||||
) }
|
||||
<IconButton
|
||||
className="woocommerce-filters-advanced__remove"
|
||||
className={ classnames(
|
||||
'woocommerce-filters-advanced__line-item',
|
||||
'woocommerce-filters-advanced__remove'
|
||||
) }
|
||||
label={ labels.remove }
|
||||
onClick={ partial( this.removeFilter, key ) }
|
||||
icon={ <Gridicon icon="cross-small" /> }
|
||||
|
|
|
@ -217,7 +217,7 @@ class NumberFilter extends Component {
|
|||
|
||||
/*eslint-disable jsx-a11y/no-noninteractive-tabindex*/
|
||||
return (
|
||||
<fieldset tabIndex="0">
|
||||
<fieldset className="woocommerce-filters-advanced__line-item" tabIndex="0">
|
||||
<legend className="screen-reader-text">
|
||||
{ labels.add || '' }
|
||||
</legend>
|
||||
|
|
|
@ -106,7 +106,7 @@ class SearchFilter extends Component {
|
|||
|
||||
/*eslint-disable jsx-a11y/no-noninteractive-tabindex*/
|
||||
return (
|
||||
<fieldset tabIndex="0">
|
||||
<fieldset className="woocommerce-filters-advanced__line-item" tabIndex="0">
|
||||
<legend className="screen-reader-text">
|
||||
{ labels.add || '' }
|
||||
</legend>
|
||||
|
|
|
@ -98,7 +98,7 @@ class SelectFilter extends Component {
|
|||
|
||||
/*eslint-disable jsx-a11y/no-noninteractive-tabindex*/
|
||||
return (
|
||||
<fieldset tabIndex="0">
|
||||
<fieldset className="woocommerce-filters-advanced__line-item" tabIndex="0">
|
||||
<legend className="screen-reader-text">
|
||||
{ labels.add || '' }
|
||||
</legend>
|
||||
|
|
|
@ -45,18 +45,22 @@
|
|||
padding: 0 $gap 0 0;
|
||||
margin: 0;
|
||||
display: grid;
|
||||
grid-template-columns: auto 40px;
|
||||
grid-template-columns: 1fr 40px;
|
||||
background-color: $core-grey-light-100;
|
||||
border-bottom: 1px solid $core-grey-light-700;
|
||||
|
||||
fieldset {
|
||||
padding: $gap-smaller $gap-smaller $gap-smaller $gap;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $core-grey-light-200;
|
||||
}
|
||||
|
||||
.woocommerce-filters-advanced__line-item {
|
||||
@include set-grid-item-position( 2, 2 );
|
||||
}
|
||||
|
||||
fieldset {
|
||||
padding: $gap-smaller $gap-smaller $gap-smaller $gap;
|
||||
}
|
||||
|
||||
.woocommerce-filters-advanced__remove {
|
||||
width: 40px;
|
||||
height: 38px;
|
||||
|
|
Loading…
Reference in New Issue