Refactored Breadcrumb styles
parent
0f716d4e16
commit
1bee019db6
|
@ -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({
|
||||||
|
|
|
@ -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')};
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue