CA DMV actually recommends wearing sunglasses: “...(glare section)...”wear polarized sunglasses”: https://www.dmv.ca.gov/portal/handbook/california-driver-handbook/safe-driving/
It is sunglasses with super wide temples (designer/hip-hop sunglasses) that are an issue (block lateral vision):
https://revisionoptometry.com/blog/california-prohibits-driving-with-some-sunglasses/
https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?sectionNum=23120.&lawCode=VEH
This could be a problem.