From b7cf334d2a5f771ffc35dd675e4bf70b553500a5 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 14 Feb 2024 10:34:27 +0300 Subject: [PATCH] Refactor #5273 - Refactor on Calendar and Password --- components/lib/calendar/style/CalendarStyle.js | 4 ++-- components/lib/password/Password.vue | 4 ++-- components/lib/password/style/PasswordStyle.js | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/components/lib/calendar/style/CalendarStyle.js b/components/lib/calendar/style/CalendarStyle.js index 6257f35ff..23ead42ef 100644 --- a/components/lib/calendar/style/CalendarStyle.js +++ b/components/lib/calendar/style/CalendarStyle.js @@ -9,7 +9,7 @@ const classes = { 'p-calendar p-component p-inputwrapper', { 'p-calendar-w-btn': props.showIcon && props.iconDisplay === 'button', - 'p-input-icon-right': props.showIcon && props.iconDisplay === 'input', + 'p-icon-field p-icon-field-right': props.showIcon && props.iconDisplay === 'input', 'p-calendar-timeonly': props.timeOnly, 'p-calendar-disabled': props.disabled, 'p-invalid': props.invalid, @@ -25,7 +25,7 @@ const classes = { } ], dropdownButton: 'p-datepicker-trigger', - inputIcon: 'p-datepicker-trigger-icon', + inputIcon: 'p-datepicker-trigger-icon p-input-icon', panel: ({ instance, props, state }) => [ 'p-datepicker p-component', { diff --git a/components/lib/password/Password.vue b/components/lib/password/Password.vue index 75ee3e7c0..a2ec8725d 100755 --- a/components/lib/password/Password.vue +++ b/components/lib/password/Password.vue @@ -27,10 +27,10 @@ :unstyled="unstyled" /> - + - + {{ infoText }} diff --git a/components/lib/password/style/PasswordStyle.js b/components/lib/password/style/PasswordStyle.js index e492d66c6..56ac0d6ea 100644 --- a/components/lib/password/style/PasswordStyle.js +++ b/components/lib/password/style/PasswordStyle.js @@ -10,7 +10,7 @@ const classes = { { 'p-inputwrapper-filled': instance.filled, 'p-inputwrapper-focus': instance.focused, - 'p-input-icon-right': props.toggleMask + 'p-icon-field p-icon-field-right': props.toggleMask } ], input: ({ props }) => [ @@ -19,7 +19,9 @@ const classes = { 'p-disabled': props.disabled } ], - panel: ({ props, instance }) => [ + hideIcon: 'p-input-icon', + showIcon: 'p-input-icon', + panel: ({ instance }) => [ 'p-password-panel p-component', { 'p-ripple-disabled': instance.$primevue.config.ripple === false