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', home: 'p-breadcrumb-home-item',
separator: 'p-breadcrumb-separator', separator: 'p-breadcrumb-separator',
menuitem: ({ instance }) => ['p-breadcrumb-item', { 'p-disabled': instance.disabled() }], menuitem: ({ instance }) => ['p-breadcrumb-item', { 'p-disabled': instance.disabled() }],
action: 'p-breadcrumb-action', action: 'p-breadcrumb-item-link',
icon: 'p-breadcrumb-icon', icon: 'p-breadcrumb-item-icon',
label: 'p-breadcrumb-label' label: 'p-breadcrumb-item-label'
}; };
export default BaseStyle.extend({ export default BaseStyle.extend({

View File

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