Skip to content

Commit

Permalink
refactor(preact-components-radio): refactoring default icon prop values
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisFrazier77 committed Jul 12, 2024
1 parent d89fbe3 commit e8be32f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export const Radio = observer((properties: RadioProps): JSX.Element => {
size: '20px',
startChecked: false,
disableA11y: false,
checkedIcon: 'bullet',
unCheckedIcon: 'bullet-o',
};

const props = mergeProps('radio', globalTheme, defaultProps, properties);
Expand All @@ -72,7 +74,6 @@ export const Radio = observer((properties: RadioProps): JSX.Element => {
activeIcon: {
// default props
className: 'ss__radio__icon--active',
icon: checkedIcon || 'bullet',
// global theme
...globalTheme?.components?.icon,
// inherited props
Expand All @@ -87,7 +88,6 @@ export const Radio = observer((properties: RadioProps): JSX.Element => {
inactiveIcon: {
// default props
className: 'ss__radio__icon--inactive',
icon: unCheckedIcon || 'bullet-o',
// global theme
...globalTheme?.components?.icon,
// inherited props
Expand Down

0 comments on commit e8be32f

Please sign in to comment.