Skip to content

Commit

Permalink
Revert "Added button to EuiSuperDatePicker's “Now” tab to trigger t…
Browse files Browse the repository at this point in the history
…he "now" time selection (elastic#1620)"

This reverts commit 255d330.
  • Loading branch information
cchaos authored and ryankeairns committed Mar 11, 2019
1 parent 63a88e2 commit d74f18f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@
.euiDatePopoverContent__padded {
padding: $euiSizeS;
}

.euiDatePopoverContent__padded--large {
padding: $euiSize;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import React from 'react';

import { EuiTabbedContent } from '../../../tabs';
import { EuiText } from '../../../text';
import { EuiButton } from '../../../button';

import { EuiAbsoluteTab } from './absolute_tab';
import { EuiRelativeTab } from './relative_tab';
Expand All @@ -26,6 +25,9 @@ export function EuiDatePopoverContent({ value, roundUp, onChange, dateFormat })
case DATE_MODES.RELATIVE:
onChange(toRelativeString(value));
break;
case DATE_MODES.NOW:
onChange('now');
break;
}
};

Expand Down Expand Up @@ -60,20 +62,11 @@ export function EuiDatePopoverContent({ value, roundUp, onChange, dateFormat })
id: DATE_MODES.NOW,
name: 'Now',
content: (
<EuiText size="s" color="subdued" className="euiDatePopoverContent__padded--large">
<EuiText size="s" color="subdued" className="euiDatePopoverContent__padded">
<p>
Setting the time to &quot;now&quot; means that on every refresh
Setting the time to &quot;Now&quot; means that on every refresh
this time will be set to the time of the refresh.
</p>
<EuiButton
data-test-subj="superDatePickerNowButton"
onClick={() => onChange('now')}
fullWidth
size="s"
fill
>
Set date and time to now
</EuiButton>
</EuiText>
),
'data-test-subj': 'superDatePickerNowTab',
Expand Down

0 comments on commit d74f18f

Please sign in to comment.