• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-webcomponents / 15753383816

19 Jun 2025 08:33AM UTC coverage: 98.266% (+0.009%) from 98.257%
15753383816

Pull #1746

github

web-flow
Merge f7f9c96b3 into 56a6e7062
Pull Request #1746: refactor: Dropped themes decorator for explicit initialization

4943 of 5189 branches covered (95.26%)

Branch coverage included in aggregate %.

435 of 447 new or added lines in 71 files covered. (97.32%)

8 existing lines in 1 file now uncovered.

31497 of 31894 relevant lines covered (98.76%)

1728.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

70.91
/src/components/card/card.header.ts
1
import { html, LitElement } from 'lit';
9✔
2

9✔
3
import { addThemingController } from '../../theming/theming-controller.js';
9✔
4
import { registerComponent } from '../common/definitions/register.js';
9✔
5
import { styles } from './themes/card.header.base.css.js';
9✔
6
import { all } from './themes/header.js';
9✔
7
import { styles as shared } from './themes/shared/header/card.header.common.css.js';
9✔
8

9✔
9
/** A container for card's header
9✔
10
 * @element igc-card-header
9✔
11
 *
9✔
12
 * @slot thumbnail - Renders header media like icon
9✔
13
 * @slot title - Renders the card title
9✔
14
 * @slot subtitle - Renders the card subtitle
9✔
15
 * @slot - Renders content next to the card title
9✔
16
 *
9✔
17
 * @csspart header - The card header container
9✔
18
 */
9✔
19
export default class IgcCardHeaderComponent extends LitElement {
9✔
20
  public static readonly tagName = 'igc-card-header';
9✔
21
  public static override styles = [styles, shared];
9✔
22

9✔
23
  /* blazorSuppress */
9✔
24
  public static register(): void {
9✔
25
    registerComponent(IgcCardHeaderComponent);
1✔
26
  }
1✔
27

9✔
28
  constructor() {
9✔
NEW
29
    super();
×
NEW
30
    addThemingController(this, all);
×
NEW
31
  }
×
32

9✔
33
  protected override render() {
9✔
34
    return html`
×
35
      <section>
×
36
        <slot name="thumbnail"></slot>
×
37
      </section>
×
38
      <section>
×
39
        <header part="header">
×
40
          <slot part="title" name="title"></slot>
×
41
          <slot part="subtitle" name="subtitle"></slot>
×
42
        </header>
×
43
        <slot></slot>
×
44
      </section>
×
45
    `;
×
46
  }
×
47
}
9✔
48

9✔
49
declare global {
9✔
50
  interface HTMLElementTagNameMap {
9✔
51
    'igc-card-header': IgcCardHeaderComponent;
9✔
52
  }
9✔
53
}
9✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc