File tree 1 file changed +3
-5
lines changed
packages/core/components/DataTable
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ const DataTable = (props: DataTableProps) => {
212
212
const getClassNames = ( ) : string => {
213
213
const classes = [ 'data-table-container' ]
214
214
215
- if ( config . table . showDownloadLinkBelow ) {
215
+ if ( ( config . table . download || config . general ?. showDownloadButton ) && config . table . showDownloadLinkBelow ) {
216
216
classes . push ( 'mt-4' )
217
217
}
218
218
@@ -283,7 +283,7 @@ const DataTable = (props: DataTableProps) => {
283
283
284
284
return (
285
285
< ErrorBoundary component = 'DataTable' >
286
- { config . general ?. showDownloadButton && ! config . table . showDownloadLinkBelow && < TableMediaControls /> }
286
+ { ! config . table . showDownloadLinkBelow && < TableMediaControls /> }
287
287
< section id = { tabbingId . replace ( '#' , '' ) } className = { getClassNames ( ) } aria-label = { accessibilityLabel } >
288
288
< SkipTo skipId = { skipId } skipMessage = 'Skip Data Table' />
289
289
{ config . table . collapsible !== false && (
@@ -357,9 +357,7 @@ const DataTable = (props: DataTableProps) => {
357
357
) }
358
358
</ div >
359
359
</ section >
360
- { config . general ?. showDownloadButton && config . table . showDownloadLinkBelow && (
361
- < TableMediaControls belowTable = { true } />
362
- ) }
360
+ { config . table . showDownloadLinkBelow && < TableMediaControls belowTable = { true } /> }
363
361
< div id = { skipId } className = 'cdcdataviz-sr-only' >
364
362
Skipped data table.
365
363
</ div >
You can’t perform that action at this time.
0 commit comments