File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
27
27
*
28
28
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
29
29
*/
30
- declare class Breadcrumb extends ElementMixin ( ThemableMixin ( HTMLElement ) ) { }
30
+ declare class Breadcrumb extends ElementMixin ( ThemableMixin ( HTMLElement ) ) {
31
+ /**
32
+ * The aria-label attribute for the breadcrumb navigation
33
+ */
34
+ ariaLabel : string ;
35
+ }
31
36
32
37
declare global {
33
38
interface HTMLElementTagNameMap {
Original file line number Diff line number Diff line change @@ -49,6 +49,16 @@ class Breadcrumb extends ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMi
49
49
50
50
static get properties ( ) {
51
51
return {
52
+ /**
53
+ * The aria-label attribute for the breadcrumb navigation
54
+ */
55
+ ariaLabel : {
56
+ type : String ,
57
+ value : 'Breadcrumb' ,
58
+ reflectToAttribute : true ,
59
+ sync : true ,
60
+ } ,
61
+
52
62
/**
53
63
* The list of breadcrumb items
54
64
* @type {!Array<!BreadcrumbItem> }
@@ -81,8 +91,6 @@ class Breadcrumb extends ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMi
81
91
if ( ! this . hasAttribute ( 'role' ) ) {
82
92
this . setAttribute ( 'role' , 'navigation' ) ;
83
93
}
84
-
85
- this . setAttribute ( 'aria-label' , 'Breadcrumb' ) ;
86
94
}
87
95
88
96
/** @private */
You can’t perform that action at this time.
0 commit comments