Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/RadioButton/RadioButtonItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ const RadioButtonItem = ({
radioButton = <RadioButton {...radioButtonProps} />;
}

const textAlign = isLeading ? 'right' : 'left';
// Leading puts the control on the left. Keep the label beside it.
const textAlign = 'left';

const computedStyle: TextStyle = {
...getStateLayer(theme, 'onSurface', disabled ? 'disabled' : 'enabled'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ exports[`can render leading radio button control 1`] = `
{
"color": "rgba(29, 27, 32, 1)",
"opacity": 1,
"textAlign": "right",
"textAlign": "left",
},
undefined,
],
Expand Down
Loading