Skip to content

Commit

Permalink
fix(lib): use display: contents for host containers
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Apr 5, 2024
1 parent 63346b9 commit 67c2dec
Show file tree
Hide file tree
Showing 1,514 changed files with 10,588 additions and 1,514 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@phosphor-icons/webcomponents",
"version": "2.1.3",
"version": "2.1.4",
"description": "A flexible icon family for the web",
"author": "rektdeckard",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion scripts/assemble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function generateComponents(icons: AssetMap) {

const componentString = `\
/* GENERATED FILE */
import { html, svg, LitElement } from 'lit';
import { html, svg, css, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import type { IconWeight, IconAttrs } from '../types';
Expand Down Expand Up @@ -111,6 +111,8 @@ class Ph${name} extends LitElement {
\${Ph${name}.weightsMap.get(this.weight ?? "regular")}
</svg>\`;
}
static styles = css\`:host { display: contents }\`;
}
export { Ph${name} }
Expand Down
8 changes: 7 additions & 1 deletion src/icons/PhAcorn.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAcorn extends LitElement {
${PhAcorn.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAcorn };
8 changes: 7 additions & 1 deletion src/icons/PhAddressBook.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAddressBook extends LitElement {
${PhAddressBook.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAddressBook };
8 changes: 7 additions & 1 deletion src/icons/PhAddressBookTabs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAddressBookTabs extends LitElement {
${PhAddressBookTabs.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAddressBookTabs };
8 changes: 7 additions & 1 deletion src/icons/PhAirTrafficControl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAirTrafficControl extends LitElement {
${PhAirTrafficControl.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAirTrafficControl };
8 changes: 7 additions & 1 deletion src/icons/PhAirplane.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAirplane extends LitElement {
${PhAirplane.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAirplane };
8 changes: 7 additions & 1 deletion src/icons/PhAirplaneInFlight.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAirplaneInFlight extends LitElement {
${PhAirplaneInFlight.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAirplaneInFlight };
8 changes: 7 additions & 1 deletion src/icons/PhAirplaneLanding.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAirplaneLanding extends LitElement {
${PhAirplaneLanding.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAirplaneLanding };
8 changes: 7 additions & 1 deletion src/icons/PhAirplaneTakeoff.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAirplaneTakeoff extends LitElement {
${PhAirplaneTakeoff.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAirplaneTakeoff };
8 changes: 7 additions & 1 deletion src/icons/PhAirplaneTaxiing.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAirplaneTaxiing extends LitElement {
${PhAirplaneTaxiing.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAirplaneTaxiing };
8 changes: 7 additions & 1 deletion src/icons/PhAirplaneTilt.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAirplaneTilt extends LitElement {
${PhAirplaneTilt.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAirplaneTilt };
8 changes: 7 additions & 1 deletion src/icons/PhAirplay.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAirplay extends LitElement {
${PhAirplay.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAirplay };
8 changes: 7 additions & 1 deletion src/icons/PhAlarm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAlarm extends LitElement {
${PhAlarm.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAlarm };
8 changes: 7 additions & 1 deletion src/icons/PhAlien.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAlien extends LitElement {
${PhAlien.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAlien };
8 changes: 7 additions & 1 deletion src/icons/PhAlignBottom.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAlignBottom extends LitElement {
${PhAlignBottom.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAlignBottom };
8 changes: 7 additions & 1 deletion src/icons/PhAlignBottomSimple.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAlignBottomSimple extends LitElement {
${PhAlignBottomSimple.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAlignBottomSimple };
8 changes: 7 additions & 1 deletion src/icons/PhAlignCenterHorizontal.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAlignCenterHorizontal extends LitElement {
${PhAlignCenterHorizontal.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAlignCenterHorizontal };
8 changes: 7 additions & 1 deletion src/icons/PhAlignCenterHorizontalSimple.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAlignCenterHorizontalSimple extends LitElement {
${PhAlignCenterHorizontalSimple.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAlignCenterHorizontalSimple };
8 changes: 7 additions & 1 deletion src/icons/PhAlignCenterVertical.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* GENERATED FILE */
import { html, svg, LitElement } from "lit";
import { html, svg, css, LitElement } from "lit";
import { customElement, property } from "lit/decorators.js";

import type { IconWeight, IconAttrs } from "../types";
Expand Down Expand Up @@ -69,6 +69,12 @@ class PhAlignCenterVertical extends LitElement {
${PhAlignCenterVertical.weightsMap.get(this.weight ?? "regular")}
</svg>`;
}

static styles = css`
:host {
display: contents;
}
`;
}

export { PhAlignCenterVertical };
Loading

0 comments on commit 67c2dec

Please sign in to comment.