Refactored AccordionPanel

pull/5677/head
Cagatay Civici 2024-04-29 13:01:24 +03:00
parent b409cf5e2f
commit 23366adf87
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ const classes = {
root: ({ instance, props }) => [ root: ({ instance, props }) => [
'p-accordionpanel', 'p-accordionpanel',
{ {
'p-active': instance.active, 'p-accordionpanel-active': instance.active,
'p-disabled': props.disabled 'p-disabled': props.disabled
} }
] ]

View File

@ -30,11 +30,11 @@ export default {
outline-offset: -2px; 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')} 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')} color: ${dt('accordion.header.active.color')}
} }