I agree to a point with Penggwyn.
"I then happily accepted that someone should be judged for wearing non-appropriate court dress"
No they shouldn't. Judges should be educated to understand the reasons why someone presents themselves the way they do. If there are reasons, then there shouldn't be a judgement.
I was a CP SW. I attended the Family Court, regularly. I (as well as other agencies) also worked with Families. Dressing appropriately, sometimes needs to be taught. The Job Center used to give crisis loans for Court Clothes, now they don't.
We shouldn't judge people based on, a neglected background, poverty, class, intelligence, sensory issues (we had a Parent that was only comfortable in shoes that wasn't really suitable for Court) and many other issues, which bring them to the point that they are.
The Judge will know these factors, the defense Solicitor etc will put them into the argument and they will be factors in sentencing, or recommendations.
It reminds me of the bad old days, when any show of emotion, especially in the case of potentially losing their children, would result in them being branded 'aggressive', 'violent' etc.
We don't want to return to those.