"Aa" values on legend when generating the plot to html

I managed to hide the Aa values on legend from the dash plot by adding:
g.pointtext {
display: none;
}

to my style.css file but they are visible again when I see the html version of the generated plot using fig.write_html(‘name’, include_plotlyjs=“cdn”, full_html=‘False’). How can I hide these from HTML file too?Capture2