Skip to content

Commit

Permalink
fix(radiobutton): use js properties in that match typescript declarat…
Browse files Browse the repository at this point in the history
…ion for pt options (#6935)

Co-authored-by: Pascal Economou <[email protected]>
  • Loading branch information
peconomou929 and Pascal Economou authored Jul 27, 2024
1 parent 02c461e commit 089a751
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions components/lib/radiobutton/RadioButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ export const RadioButton = React.memo(
readOnly: props.readonly,
required: props.required,
tabIndex: props.tabIndex,
className: cx('radiobuttoninput'),
className: cx('input'),
...ariaProps
},
inProps.input,
ptm('radiobuttoninput')
ptm('input')
);

return <input ref={inputRef} {...inputProps} />;
Expand All @@ -152,18 +152,18 @@ export const RadioButton = React.memo(
const createBoxElement = () => {
const boxProps = mergeProps(
{
className: cx('radiobuttonbox')
className: cx('box')
},
inProps.box,
ptm('radiobuttonbox')
ptm('box')
);

const iconProps = mergeProps(
{
className: cx('radiobuttonicon')
className: cx('icon')
},
inProps.icon,
ptm('radiobuttonicon')
ptm('icon')
);

return (
Expand Down
6 changes: 3 additions & 3 deletions components/lib/radiobutton/RadioButtonBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const classes = {
'p-invalid': props.invalid,
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled'
}),
radiobuttonbox: 'p-radiobutton-box',
radiobuttoninput: 'p-radiobutton-input',
radiobuttonicon: 'p-radiobutton-icon'
box: 'p-radiobutton-box',
input: 'p-radiobutton-input',
icon: 'p-radiobutton-icon'
};

export const RadioButtonBase = ComponentBase.extend({
Expand Down

0 comments on commit 089a751

Please sign in to comment.