My tables created with plotly dash apply rounded corners only on the left side. I tried all kinds of variations with borderRadius, borderCollapse and overflow combinations. Nothing helps
Style code:
style_header={'backgroundColor': '#305D91', 'color': '#FFFFFF', 'padding': '10px', 'border': '0'}
style_cell={
'backgroundColor': '#FFFFFF',
'color': '#000000',
'fontSize':12, 'font-family':'sans-serif',
'padding': '10px',
'border': 'thin solid #FFFFFF',
}
style_data_conditional=[
{
'if': {'row_index': 'odd'},
'backgroundColor': '#E8E8E8',
} ]
style_table={
'borderRadius':'10px 10px',
#'border-collapse': 'separate !important',
#'maxHeight': '350px',
#'maxWidth': '1200px',
'overflow': 'hidden'
}
app.layout = html.Div([
html.Div([ html.Div('Q3', style=style)
]),
html.Div([
dash_table.DataTable(
data=df_Q3.to_dict('records'),
columns=[{'id': c, 'name': c} for c in select_broadest_df],
style_header=style_header,
style_cell=style_cell,
style_data_conditional=style_data_conditional,
style_table=style_table,
fill_width=False
)
]),

