mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 01:20:24 +03:00
Fixed DateRangeSelector focus state
This commit is contained in:
parent
95abf4f898
commit
d39512732a
2 changed files with 4 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
||||||
@import '../../utils/mixins/vertical-align';
|
@import '../../utils/mixins/vertical-align';
|
||||||
|
|
||||||
.date-range-selector__btn.date-range-selector__btn,
|
.date-range-selector__btn.date-range-selector__btn,
|
||||||
.date-range-selector__btn.date-range-selector__btn:not(:disabled):not(.disabled):active,
|
|
||||||
.date-range-selector__btn.date-range-selector__btn:not(:disabled):not(.disabled).active,
|
.date-range-selector__btn.date-range-selector__btn:not(:disabled):not(.disabled).active,
|
||||||
|
.date-range-selector__btn.date-range-selector__btn:not(:disabled):not(.disabled):active,
|
||||||
|
.date-range-selector__btn.date-range-selector__btn:not(:disabled):not(.disabled):focus,
|
||||||
.date-range-selector__btn.date-range-selector__btn:not(:disabled):not(.disabled):hover,
|
.date-range-selector__btn.date-range-selector__btn:not(:disabled):not(.disabled):hover,
|
||||||
.show > .date-range-selector__btn.date-range-selector__btn.dropdown-toggle {
|
.show > .date-range-selector__btn.date-range-selector__btn.dropdown-toggle {
|
||||||
color: #6c757d;
|
color: #6c757d;
|
||||||
|
|
|
@ -3,12 +3,13 @@ import { DropdownItem } from 'reactstrap';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { DateRangeSelector, DateRangeSelectorProps } from '../../../src/utils/dates/DateRangeSelector';
|
import { DateRangeSelector, DateRangeSelectorProps } from '../../../src/utils/dates/DateRangeSelector';
|
||||||
import { DateInterval } from '../../../src/utils/dates/types';
|
import { DateInterval } from '../../../src/utils/dates/types';
|
||||||
|
import { Mock } from 'ts-mockery';
|
||||||
|
|
||||||
describe('<DateRangeSelector />', () => {
|
describe('<DateRangeSelector />', () => {
|
||||||
let wrapper: ShallowWrapper;
|
let wrapper: ShallowWrapper;
|
||||||
const onDatesChange = jest.fn();
|
const onDatesChange = jest.fn();
|
||||||
const createWrapper = (props: Partial<DateRangeSelectorProps> = {}) => {
|
const createWrapper = (props: Partial<DateRangeSelectorProps> = {}) => {
|
||||||
wrapper = shallow(<DateRangeSelector {...props} onDatesChange={onDatesChange} />);
|
wrapper = shallow(<DateRangeSelector {...Mock.of<DateRangeSelectorProps>(props)} onDatesChange={onDatesChange} />);
|
||||||
|
|
||||||
return wrapper;
|
return wrapper;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue