File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 dis play: 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
136123export { VcfBreadcrumb } ;
You can’t perform that action at this time.
0 commit comments