File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed
projects/igniteui-angular/src/lib/card Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ Supporting directives and components:
47
47
## igx-card-header
48
48
| Name | Type | Description |
49
49
| :----------| :-------------:| :------|
50
- | ` role ` | string | The role attribute of the card header. By default it's set to ` header ` . |
51
50
| ` vertical ` | boolean | Sets the header layout direction. When set to ` true ` the card content is vertically layed out. |
52
51
53
52
## igx-card-media
Original file line number Diff line number Diff line change @@ -88,18 +88,6 @@ export class IgxCardHeaderComponent {
88
88
@HostBinding ( 'class.igx-card-header--vertical' )
89
89
@Input ( )
90
90
public vertical = false ;
91
-
92
- /**
93
- * An @Input property that sets the value of the `role` attribute of the card header.
94
- * By default the value is set to `header`.
95
- *
96
- * @example
97
- * ```html
98
- * <igx-card-header role="header"></igx-card-header>
99
- * ```
100
- */
101
- @HostBinding ( 'attr.role' )
102
- public role = 'header' ;
103
91
}
104
92
105
93
/**
Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ describe('Card', () => {
124
124
const header = fixture . debugElement . query ( By . css ( 'igx-card-header' ) ) . nativeElement ;
125
125
126
126
expect ( header ) . toBeDefined ( ) ;
127
- expect ( header . getAttribute ( 'role' ) ) . toEqual ( 'header' ) ;
127
+ // K.D. March 20th, 2023 #12792 Card header should have no role
128
+ // expect(header.getAttribute('role')).toEqual('header');
129
+ expect ( header . getAttribute ( 'role' ) ) . toBeNull ( ) ;
128
130
129
131
expect ( header ) . toHaveClass ( classes . header . base ) ;
130
132
expect ( header ) . not . toHaveClass ( classes . header . vertical ) ;
You can’t perform that action at this time.
0 commit comments