From 089a7518d2b36e1b19e9601101b1784c31c27736 Mon Sep 17 00:00:00 2001 From: peconomou929 <65582486+peconomou929@users.noreply.github.com> Date: Sat, 27 Jul 2024 14:06:12 +0200 Subject: [PATCH] fix(radiobutton): use js properties in that match typescript declaration for pt options (#6935) Co-authored-by: Pascal Economou --- components/lib/radiobutton/RadioButton.js | 12 ++++++------ components/lib/radiobutton/RadioButtonBase.js | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/components/lib/radiobutton/RadioButton.js b/components/lib/radiobutton/RadioButton.js index 3e43322949..ddcd09c6ef 100644 --- a/components/lib/radiobutton/RadioButton.js +++ b/components/lib/radiobutton/RadioButton.js @@ -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 ; @@ -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 ( diff --git a/components/lib/radiobutton/RadioButtonBase.js b/components/lib/radiobutton/RadioButtonBase.js index d03ea4332c..c6896607e1 100644 --- a/components/lib/radiobutton/RadioButtonBase.js +++ b/components/lib/radiobutton/RadioButtonBase.js @@ -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({