Some solar panels are considered hazardous waste, and some are not
That's horribly unspecific
Lead and cadmium
AFAIK in EU Leaded solder is forbidden since many years (outside of safety related equipment). Cadmium is regulated in similar fashion. Electronic equipment disposal and recycling is also strictly controlled.