Refactored Breadcrumb styles

pull/5677/head
Cagatay Civici 2024-04-09 15:01:07 +03:00
parent 0f716d4e16
commit 1bee019db6
2 changed files with 8 additions and 8 deletions

View File

@ -6,9 +6,9 @@ const classes = {
home: 'p-breadcrumb-home-item',
separator: 'p-breadcrumb-separator',
menuitem: ({ instance }) => ['p-breadcrumb-item', { 'p-disabled': instance.disabled() }],
action: 'p-breadcrumb-action',
icon: 'p-breadcrumb-icon',
label: 'p-breadcrumb-label'
action: 'p-breadcrumb-item-link',
icon: 'p-breadcrumb-item-icon',
label: 'p-breadcrumb-item-label'
};
export default BaseStyle.extend({

View File

@ -28,7 +28,7 @@ export default {
display: none;
}
.p-breadcrumb-action {
.p-breadcrumb-item-link {
text-decoration: none;
display: flex;
align-items: center;
@ -37,23 +37,23 @@ export default {
outline-color: transparent;
}
.p-breadcrumb-action:focus-visible {
.p-breadcrumb-item-link:focus-visible {
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
outline-offset: ${dt('focus.ring.offset')};
}
.p-breadcrumb-label {
.p-breadcrumb-item-link {
color: ${dt('breadcrumb.item.color')};
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
line-height: 1;
}
.p-breadcrumb-label:hover {
.p-breadcrumb-item-label:hover {
color: ${dt('breadcrumb.item.hover.color')};
line-height: 1;
}
.p-breadcrumb-icon {
.p-breadcrumb-item-icon {
color: ${dt('breadcrumb.item.icon.color')};
}
`