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';
|
||||
|
||||
.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):focus,
|
||||
.date-range-selector__btn.date-range-selector__btn:not(:disabled):not(.disabled):hover,
|
||||
.show > .date-range-selector__btn.date-range-selector__btn.dropdown-toggle {
|
||||
color: #6c757d;
|
||||
|
|
|
@ -3,12 +3,13 @@ import { DropdownItem } from 'reactstrap';
|
|||
import moment from 'moment';
|
||||
import { DateRangeSelector, DateRangeSelectorProps } from '../../../src/utils/dates/DateRangeSelector';
|
||||
import { DateInterval } from '../../../src/utils/dates/types';
|
||||
import { Mock } from 'ts-mockery';
|
||||
|
||||
describe('<DateRangeSelector />', () => {
|
||||
let wrapper: ShallowWrapper;
|
||||
const onDatesChange = jest.fn();
|
||||
const createWrapper = (props: Partial<DateRangeSelectorProps> = {}) => {
|
||||
wrapper = shallow(<DateRangeSelector {...props} onDatesChange={onDatesChange} />);
|
||||
wrapper = shallow(<DateRangeSelector {...Mock.of<DateRangeSelectorProps>(props)} onDatesChange={onDatesChange} />);
|
||||
|
||||
return wrapper;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue