@@ -313,71 +313,71 @@ export const OuiDataGridHeaderCell: FunctionComponent<OuiDataGridHeaderCellProps
313
313
314
314
return (
315
315
< OuiToolTip position = "top" content = { id } >
316
- < div
317
- role = "columnheader"
318
- { ...ariaProps }
319
- ref = { headerRef }
320
- tabIndex = { isFocused && ! isCellEntered ? 0 : - 1 }
321
- className = { classes }
322
- data-test-subj = { `dataGridHeaderCell-${ id } ` }
323
- style = { width != null ? { width : `${ width } px` } : { } } >
324
- { column . isResizable !== false && width != null ? (
325
- < OuiDataGridColumnResizer
326
- columnId = { id }
327
- columnWidth = { width }
328
- setColumnWidth = { setColumnWidth }
329
- />
330
- ) : null }
316
+ < div
317
+ role = "columnheader"
318
+ { ...ariaProps }
319
+ ref = { headerRef }
320
+ tabIndex = { isFocused && ! isCellEntered ? 0 : - 1 }
321
+ className = { classes }
322
+ data-test-subj = { `dataGridHeaderCell-${ id } ` }
323
+ style = { width != null ? { width : `${ width } px` } : { } } >
324
+ { column . isResizable !== false && width != null ? (
325
+ < OuiDataGridColumnResizer
326
+ columnId = { id }
327
+ columnWidth = { width }
328
+ setColumnWidth = { setColumnWidth }
329
+ />
330
+ ) : null }
331
331
332
- { sorting && sorting . columns . length >= 2 && (
333
- < OuiScreenReaderOnly >
334
- < div id = { screenReaderId } > { sortString } </ div >
335
- </ OuiScreenReaderOnly >
336
- ) }
337
- { ! showColumnActions ? (
338
- < >
339
- { sortingArrow }
340
- < div className = "ouiDataGridHeaderCell__content" >
341
- { display || displayAsText || id }
342
- </ div >
343
- </ >
344
- ) : (
345
- < OuiPopover
346
- anchorClassName = "ouiDataGridHeaderCell__anchor"
347
- panelPaddingSize = "none"
348
- offset = { 7 }
349
- button = {
350
- < button
351
- className = "ouiDataGridHeaderCell__button"
352
- onClick = { ( ) =>
353
- setIsPopoverOpen ( ( isPopoverOpen ) => ! isPopoverOpen )
354
- } >
355
- { sortingArrow }
356
- < div className = "ouiDataGridHeaderCell__content" >
357
- { display || displayAsText || id }
358
- </ div >
359
- < OuiIcon
360
- className = "ouiDataGridHeaderCell__icon"
361
- type = "arrowDown"
362
- size = "s"
363
- color = "text"
364
- aria-label = { actionButtonAriaLabel }
365
- data-test-subj = { `dataGridHeaderCellActionButton-${ id } ` }
332
+ { sorting && sorting . columns . length >= 2 && (
333
+ < OuiScreenReaderOnly >
334
+ < div id = { screenReaderId } > { sortString } </ div >
335
+ </ OuiScreenReaderOnly >
336
+ ) }
337
+ { ! showColumnActions ? (
338
+ < >
339
+ { sortingArrow }
340
+ < div className = "ouiDataGridHeaderCell__content" >
341
+ { display || displayAsText || id }
342
+ </ div >
343
+ </ >
344
+ ) : (
345
+ < OuiPopover
346
+ anchorClassName = "ouiDataGridHeaderCell__anchor"
347
+ panelPaddingSize = "none"
348
+ offset = { 7 }
349
+ button = {
350
+ < button
351
+ className = "ouiDataGridHeaderCell__button"
352
+ onClick = { ( ) =>
353
+ setIsPopoverOpen ( ( isPopoverOpen ) => ! isPopoverOpen )
354
+ } >
355
+ { sortingArrow }
356
+ < div className = "ouiDataGridHeaderCell__content" >
357
+ { display || displayAsText || id }
358
+ </ div >
359
+ < OuiIcon
360
+ className = "ouiDataGridHeaderCell__icon"
361
+ type = "arrowDown"
362
+ size = "s"
363
+ color = "text"
364
+ aria-label = { actionButtonAriaLabel }
365
+ data-test-subj = { `dataGridHeaderCellActionButton-${ id } ` }
366
+ />
367
+ </ button >
368
+ }
369
+ isOpen = { isPopoverOpen }
370
+ closePopover = { ( ) => setIsPopoverOpen ( false ) } >
371
+ < div >
372
+ < OuiListGroup
373
+ listItems = { columnActions }
374
+ gutterSize = "none"
375
+ data-test-subj = { `dataGridHeaderCellActionGroup-${ id } ` }
366
376
/>
367
- </ button >
368
- }
369
- isOpen = { isPopoverOpen }
370
- closePopover = { ( ) => setIsPopoverOpen ( false ) } >
371
- < div >
372
- < OuiListGroup
373
- listItems = { columnActions }
374
- gutterSize = "none"
375
- data-test-subj = { `dataGridHeaderCellActionGroup-${ id } ` }
376
- />
377
- </ div >
378
- </ OuiPopover >
379
- ) }
380
- </ div >
377
+ </ div >
378
+ </ OuiPopover >
379
+ ) }
380
+ </ div >
381
381
</ OuiToolTip >
382
382
) ;
383
383
} ;
0 commit comments