-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support registering styles after component finalizes (#7069)
- Loading branch information
1 parent
fc52937
commit 398ce38
Showing
4 changed files
with
602 additions
and
35 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
packages/vaadin-themable-mixin/test/post-finalize-styles-lit.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import './post-finalize-styles.common.ts'; | ||
import { css, LitElement } from 'lit'; | ||
|
||
customElements.define( | ||
'test-element', | ||
class extends LitElement { | ||
static get styles() { | ||
return css` | ||
:host { | ||
display: block; | ||
} | ||
`; | ||
} | ||
|
||
render() { | ||
return ''; | ||
} | ||
}, | ||
); |
17 changes: 17 additions & 0 deletions
17
packages/vaadin-themable-mixin/test/post-finalize-styles-polymer.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import './post-finalize-styles.common.ts'; | ||
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js'; | ||
|
||
customElements.define( | ||
'test-element', | ||
class extends PolymerElement { | ||
static get template() { | ||
return html` | ||
<style> | ||
:host { | ||
display: block; | ||
} | ||
</style> | ||
`; | ||
} | ||
}, | ||
); |
Oops, something went wrong.