Skip to content

Commit 53c0068

Browse files
paodbmlopezFC
authored andcommitted
fix: remove hidden class as is no needed
1 parent ab411c2 commit 53c0068

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h3>Styling Demo Sample</h3>
8383
color: red
8484
}
8585

86-
#styling-example vcf-breadcrumb:not([aria-current="page"]) .breadcrumb-anchor:not(.hidden):hover {
86+
#styling-example vcf-breadcrumb:not([aria-current="page"]) .breadcrumb-anchor:hover {
8787
color: var(--lumo-primary-text-color);
8888
text-decoration: underline;
8989
}

src/component/vcf-breadcrumb.ts

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ class VcfBreadcrumb extends ElementMixin(ThemableMixin(PolylitMixin(LitElement))
7979
:host(:last-of-type) [part='separator'] {
8080
display: none;
8181
}
82-
83-
.hidden {
84-
display: none;
85-
}
86-
82+
8783
:host {
8884
display: flex;
8985
align-items: center;
@@ -100,10 +96,6 @@ class VcfBreadcrumb extends ElementMixin(ThemableMixin(PolylitMixin(LitElement))
10096
anchor.setAttribute("href", this.href);
10197
}
10298
anchor.classList.add("breadcrumb-anchor");
103-
const linkClassName = this._getLinkClassName();
104-
if(linkClassName) {
105-
anchor.classList.add(linkClassName);
106-
}
10799
// Get anchor label from #pageLabel slot
108100
let labelSlot = this.shadowRoot?.querySelector("#pageLabel") as HTMLSlotElement;
109101
const labelText = labelSlot.assignedNodes({ flatten: true })[0];
@@ -125,12 +117,7 @@ class VcfBreadcrumb extends ElementMixin(ThemableMixin(PolylitMixin(LitElement))
125117
_isEllipsisElement() {
126118
return this.getAttribute("part") === "ellipsis";
127119
}
128-
129-
_getLinkClassName() {
130-
if (this.href === '') {
131-
return 'hidden';
132-
}
133-
}
120+
134121
}
135122

136123
export { VcfBreadcrumb };

0 commit comments

Comments
 (0)