Skip to content

Commit a151e83

Browse files
committed
use display: contents for shadow-object host elements
1 parent 62cb2c8 commit a151e83

7 files changed

Lines changed: 157 additions & 495 deletions

File tree

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
"@nx/eslint-plugin": "^19.5.4",
3333
"@nx/js": "^19.5.4",
3434
"@nx/linter": "^19.8.4",
35-
"@playwright/test": "^1.56.1",
35+
"@playwright/test": "^1.57.0",
3636
"@rollup/plugin-node-resolve": "^15.3.0",
3737
"@types/node": "^20.14.11",
3838
"@types/react": "^18.3.12",
3939
"@types/sinon": "^17.0.4",
4040
"@typescript-eslint/eslint-plugin": "^7.17.0",
4141
"@typescript-eslint/parser": "^7.17.0",
42-
"esbuild": "^0.25.12",
42+
"esbuild": "^0.27.2",
4343
"eslint": "^8.57.0",
4444
"eslint-config-prettier": "^9.1.0",
4545
"eslint-plugin-astro": "^1.5.0",
@@ -53,10 +53,10 @@
5353
"lil-gui": "^0.21.0",
5454
"npm-run-all": "^4.1.5",
5555
"nx": "^19.3.1",
56-
"prettier": "^3.6.2",
56+
"prettier": "^3.7.4",
5757
"prettier-plugin-astro": "^0.14.1",
5858
"react": "^18.3.1",
59-
"rimraf": "^6.1.0",
59+
"rimraf": "^6.1.2",
6060
"sinon": "^18.0.0",
6161
"tslib": "^2.8.1",
6262
"typescript": "^5.9.3",

packages/shadow-objects/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to [@spearwolf/shadow-objects](https://github.com/spearwolf/
55
The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.25.0] - 2025-12-31
9+
10+
- use `display: contents` style for all shadow object host elements to avoid layout issues
11+
812
## [0.24.0] - 2025-11-27
913

1014
- renamed interface `ShadowObjectParams` to `ShadowObjectCreationAPI` for clarity and consistency with the concept of the _Shadow Object Creation API_

packages/shadow-objects/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@spearwolf/shadow-objects",
33
"description": "a reactive entity-component framework that feels at home in the shadows",
4-
"version": "0.24.0",
4+
"version": "0.25.0",
55
"author": {
66
"name": "Wolfger Schramm",
77
"email": "wolfger@spearwolf.de",

packages/shadow-objects/src/elements/ShaeEntElement.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ export class ShaeEntElement extends ShaeElement {
8383
this.syncShadowObjects();
8484
}
8585
});
86+
87+
this.style.display = 'contents';
8688
}
8789

8890
#unsubscribeViewComponentEffect?: () => void;

packages/shadow-objects/src/elements/ShaePropElement.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ export class ShaePropElement extends HTMLElement {
316316
this.#readTypeAttribute();
317317
this.#readNoTrimAttribute();
318318
});
319+
320+
this.style.display = 'contents';
319321
}
320322

321323
connectedCallback() {

packages/shadow-objects/src/elements/ShaeWorkerElement.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export class ShaeWorkerElement extends ShaeElement {
7575

7676
this.#createAutoSyncEffect();
7777
this.#createImportScriptEffect();
78+
79+
this.style.display = 'contents';
7880
}
7981

8082
#createImportScriptEffect() {

0 commit comments

Comments
 (0)