moj-analytical-services / shinyGovstyle

Now up to GDS frontend version v4.0.0
37 stars 6 forks source link

Updated alignment of radio button item labels #90

Closed rmbielby closed 5 days ago

rmbielby commented 1 week ago

This should be more in line with what was asked for. I've set the alignment properly now so that radio button item labels are centre aligned vertically with their parent radio button.

The screenshot below shows what it looks like now after some small css tweaks:

image

Note that I've also added an extra check into the run_example() code as I don't think the stacked radio items were aligning properly previously either and I wanted to see both in action.