Skip to content

Commit

Permalink
improve radio button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
meetup-oleksandr-dudiuk committed Jan 5, 2024
1 parent 857919d commit 77ff2bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__snapshots__/footer.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ exports[`Footer exists 1`] = `
items={
Array [
<span>
© 2023 Meetup LLC
© 2024 Meetup LLC
</span>,
]
}
Expand Down
6 changes: 5 additions & 1 deletion src/forms/RadioButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ export class RadioButton extends React.PureComponent {
value,
children,
name,
labelClassName,
...other
} = this.props;

return (
<label className="radio-container">
<label className={cx('radio-container', labelClassName)}>
<span
className={cx('radio', { checked, disabled })}
tabIndex={0}
Expand Down Expand Up @@ -51,6 +52,9 @@ RadioButton.propTypes = {
/** What we render into the input's `<label />` */
label: PropTypes.string.isRequired,

/** Class name for label wrapper */
labelClassName: PropTypes.string,

/** Additional class name/s to add to the wrapper element */
className: PropTypes.string,
/**
Expand Down

0 comments on commit 77ff2bb

Please sign in to comment.