diff options
-rw-r--r-- | packages/astro/components/ViewTransitions.astro | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/packages/astro/components/ViewTransitions.astro b/packages/astro/components/ViewTransitions.astro index b8ac44100..0bdaf1d46 100644 --- a/packages/astro/components/ViewTransitions.astro +++ b/packages/astro/components/ViewTransitions.astro @@ -7,19 +7,20 @@ export interface Props { const { fallback = 'animate' } = Astro.props; --- + <style is:global> -/* Route announcer */ -.astro-route-announcer { - position: absolute; - left: 0; - top: 0; - clip: rect(0 0 0 0); - clip-path: inset(50%); - overflow: hidden; - white-space: nowrap; - width: 1px; - height: 1px; -} + /* Route announcer */ + .astro-route-announcer { + position: absolute; + left: 0; + top: 0; + clip: rect(0 0 0 0); + clip-path: inset(50%); + overflow: hidden; + white-space: nowrap; + width: 1px; + height: 1px; + } </style> <meta name="astro-view-transitions-enabled" content="true" /> <meta name="astro-view-transitions-fallback" content={fallback} /> |