Refactored AccordionPanel
parent
b409cf5e2f
commit
23366adf87
|
@ -4,7 +4,7 @@ const classes = {
|
|||
root: ({ instance, props }) => [
|
||||
'p-accordionpanel',
|
||||
{
|
||||
'p-active': instance.active,
|
||||
'p-accordionpanel-active': instance.active,
|
||||
'p-disabled': props.disabled
|
||||
}
|
||||
]
|
||||
|
|
|
@ -30,11 +30,11 @@ export default {
|
|||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.p-accordionpanel:not(.p-active):not(.p-disabled):hover .p-accordionheader {
|
||||
.p-accordionpanel:not(.p-accordionpanel-active):not(.p-disabled):hover > .p-accordionheader {
|
||||
color: ${dt('accordion.header.hover.color')}
|
||||
}
|
||||
|
||||
.p-accordionpanel:not(.p-disabled).p-active .p-accordionheader {
|
||||
.p-accordionpanel:not(.p-disabled).p-accordionpanel-active > .p-accordionheader {
|
||||
color: ${dt('accordion.header.active.color')}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue