Skip to content

Commit 21c61cb

Browse files
fix(create-vite): fix h1 css selector in lit templates (#12951)
1 parent f781fc6 commit 21c61cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/create-vite/template-lit-ts/src/my-element.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class MyElement extends LitElement {
7676
color: #888;
7777
}
7878
79-
h1 {
79+
::slotted(h1) {
8080
font-size: 3.2em;
8181
line-height: 1.1;
8282
}

packages/create-vite/template-lit/src/my-element.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class MyElement extends LitElement {
9292
color: #535bf2;
9393
}
9494
95-
h1 {
95+
::slotted(h1) {
9696
font-size: 3.2em;
9797
line-height: 1.1;
9898
}

0 commit comments

Comments
 (0)