Skip to content

Commit 0582436

Browse files
committed
chore(*): move the role prop to the drop-down component
1 parent ed826ba commit 0582436

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

projects/igniteui-angular/src/lib/drop-down/drop-down.base.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,6 @@ export abstract class IgxDropDownBaseDirective implements IDropDownList, OnInit
104104
@HostBinding('class.igx-drop-down')
105105
public cssClass = true;
106106

107-
/**
108-
* Gets/sets the `role` attribute of the drop down. Default is 'listbox'.
109-
*
110-
* ```html
111-
* <igx-drop-down [role]="customRole"></igx-drop-down-item>
112-
* ```
113-
*/
114-
@Input()
115-
@HostBinding('attr.role')
116-
public role = 'listbox';
117-
118107
/**
119108
* Get all non-header items
120109
*

projects/igniteui-angular/src/lib/drop-down/drop-down.common.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export interface IDropDownList {
5252
height: string;
5353
id: string;
5454
maxHeight: string;
55-
role: string;
5655
collapsed: boolean;
5756
items: IgxDropDownItemBaseDirective[];
5857
headers: IgxDropDownItemBaseDirective[];

projects/igniteui-angular/src/lib/drop-down/drop-down.component.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,16 @@ export class IgxDropDownComponent extends IgxDropDownBaseDirective implements ID
134134
@Input()
135135
public labelledBy: string;
136136

137+
/**
138+
* Gets/sets the `role` attribute of the drop down. Default is 'listbox'.
139+
*
140+
* ```html
141+
* <igx-drop-down [role]="customRole"></igx-drop-down-item>
142+
* ```
143+
*/
144+
@Input()
145+
public role = 'listbox';
146+
137147
@ContentChild(IgxForOfToken)
138148
protected virtDir: IgxForOfToken<any>;
139149

0 commit comments

Comments
 (0)