Refactored panel

pull/5677/head
Cagatay Civici 2024-04-08 18:36:34 +03:00
parent 29aca170c1
commit 2702d772f4
2 changed files with 3 additions and 29 deletions

View File

@ -9,9 +9,9 @@ const classes = {
], ],
header: 'p-panel-header', header: 'p-panel-header',
title: 'p-panel-title', title: 'p-panel-title',
icons: 'p-panel-icons', icons: 'p-panel-header-actions',
toggler: 'p-panel-header-icon p-panel-toggler p-link', toggler: 'p-panel-toggle-button',
toggleablecontent: 'p-toggleable-content', toggleablecontent: 'p-panel-content-container',
content: 'p-panel-content', content: 'p-panel-content',
footer: 'p-panel-footer' footer: 'p-panel-footer'
}; };

View File

@ -23,32 +23,6 @@ export default {
font-weight: 600; font-weight: 600;
} }
.p-panel-header-icon {
display: inline-flex;
justify-content: center;
align-items: center;
cursor: pointer;
width: 1.75rem;
height: 1.75rem;
position: relative;
color: ${dt('panel.header.icon.color')};
border: 0 none;
background: transparent;
border-radius: 50%;
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
outline-color: transparent;
}
.p-panel-header-icon:enabled:hover {
color: ${dt('panel.header.icon.hover.color')};
background: ${dt('panel.header.icon.hover.background')};
}
.p-panel-header-icon:focus-visible {
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
outline-offset: ${dt('focus.ring.offset')};
}
.p-panel-content { .p-panel-content {
padding: 0 1.125rem 1.125rem 1.125rem; padding: 0 1.125rem 1.125rem 1.125rem;
} }