You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces a new lastChild property to the RadioButton component to manage the bottom margin of radio buttons within a group. The lastChild property identifies the last radio button in a group and removes its bottom margin. Key changes include:
Addition of lastChild property to the IRadioButtonContentStyled interface in radioButton.styled.ts, used to conditionally set the margin-bottom in the RadioButtonStyled component.
Update to RadioButtonStandAlone component in radioButtonStandAlone.tsx to pass the lastChild property to the RadioButtonStyled component.
Addition of lastChild property to the IRadioButtonStandAlone interface in radioButton.ts.
Calculation of the lastChild property in the RadioButtonGroupStandAloneComponent in radioButtonGroupStandAlone.tsx, passed to the RadioButtonStandAlone component.
These changes improve the visual consistency and spacing within radio button groups.
0 commit comments