Refactor #5071 - Improve the structure of some components to comply with standards

This commit is contained in:
mertsincan 2024-01-12 07:07:55 +00:00
parent e7d3074af2
commit 99b1edd5ce
17 changed files with 355 additions and 355 deletions

View file

@ -6,6 +6,10 @@ const css = `
display: inline-block;
}
.p-inputswitch-input {
cursor: pointer;
}
.p-inputswitch-slider {
position: absolute;
cursor: pointer;
@ -32,11 +36,11 @@ const classes = {
root: ({ instance, props }) => [
'p-inputswitch p-component',
{
'p-inputswitch-checked': instance.checked,
'p-disabled': props.disabled,
'p-focus': instance.focused
'p-highlight': instance.checked,
'p-disabled': props.disabled
}
],
input: 'p-inputswitch-input',
slider: 'p-inputswitch-slider'
};