mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Discover] Fix warning of Document explorer header cell (#121071)
* [Discover] fix warning * [Discover] update test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
ba9213b64f
commit
f86589214f
2 changed files with 12 additions and 2 deletions
|
@ -10,7 +10,7 @@ import { indexPatternMock } from '../../__mocks__/index_pattern';
|
|||
import { getEuiGridColumns } from './discover_grid_columns';
|
||||
import { indexPatternWithTimefieldMock } from '../../__mocks__/index_pattern_with_timefield';
|
||||
|
||||
describe('Discover grid columns ', function () {
|
||||
describe('Discover grid columns', function () {
|
||||
it('returns eui grid columns without time column', async () => {
|
||||
const actual = getEuiGridColumns(
|
||||
['extension', 'message'],
|
||||
|
@ -123,6 +123,11 @@ describe('Discover grid columns ', function () {
|
|||
<EuiIconTip
|
||||
aria-label="Primary time field."
|
||||
content="This field represents the time that events occurred."
|
||||
iconProps={
|
||||
Object {
|
||||
"tabIndex": -1,
|
||||
}
|
||||
}
|
||||
type="clock"
|
||||
/>
|
||||
</React.Fragment>,
|
||||
|
|
|
@ -99,7 +99,12 @@ export function buildEuiGridColumn(
|
|||
column.display = (
|
||||
<Fragment>
|
||||
{indexPatternField?.customLabel ?? indexPattern.timeFieldName}{' '}
|
||||
<EuiIconTip type="clock" aria-label={primaryTimeAriaLabel} content={primaryTimeTooltip} />
|
||||
<EuiIconTip
|
||||
iconProps={{ tabIndex: -1 }}
|
||||
type="clock"
|
||||
aria-label={primaryTimeAriaLabel}
|
||||
content={primaryTimeTooltip}
|
||||
/>
|
||||
</Fragment>
|
||||
);
|
||||
column.initialWidth = defaultTimeColumnWidth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue