Datatable - Dropdown - Change style

Hi @dash_noob

Try adding this to the css in the assets folder:


.dash-spreadsheet .Select-option {
    color: black !important;
}

or by using the css prop in the table

        dash_table.DataTable(
            id="table-dropdown",
            data=df.to_dict("records"),
            css=[
                {
                    "selector": ".dash-spreadsheet .Select-option",
                    "rule": "color: black",
                },
            ],
          .....
3 Likes