mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #5071 - Improve the structure of some components to comply with standards
This commit is contained in:
parent
e7d3074af2
commit
99b1edd5ce
17 changed files with 355 additions and 355 deletions
|
@ -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'
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue