Whatever the make and model, it is most important to check that sunglasses are certified to be UV blocking.
If they are not, then owing to the dark lens tint, the pupils of the eyes open wider so actually more UV gets into the eye, where it can cause more damage
I personally found that sunglasses render the displays of A320 family too dark, (I think our company ran them dim to save money replacing them). I had better success seeing the screens with graduated tint, clear at the bottom. But sunglasses are too much of a pain for me to bother with : the Airbus blind or moveable brown perspex screen, depending on which aircraft, works for me 90% of the time.