Skip to content

Commit 7920118

Browse files
luizomfclaude
andcommitted
fix(config): use global styles for dynamically created elements
Astro scoped styles only apply to elements in the static HTML. Host cards are created via JS (document.createElement) and don't get the data-astro-* scope attribute. Changed to is:global. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 64976dd commit 7920118

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/config.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ import Footer from '../components/Footer.astro';
7171
<Footer />
7272
</Base>
7373

74-
<style>
74+
<style is:global>
7575
.page-header {
7676
text-align: center;
7777
padding: 2rem 0 1.5rem;

0 commit comments

Comments
 (0)