diff options
author | 2023-02-24 12:10:56 -0600 | |
---|---|---|
committer | 2023-02-24 12:10:56 -0600 | |
commit | 26bf12ef3c7ab874a23ac753f841f7bb329c9361 (patch) | |
tree | 3e4a7ce83a135416efa61da7925cdd01b90a3f89 /examples/framework-svelte/astro.config.mjs | |
parent | 5aa6580f775405a4443835bf7eb81f0c65e5aed6 (diff) | |
download | astro-26bf12ef3c7ab874a23ac753f841f7bb329c9361.tar.gz astro-26bf12ef3c7ab874a23ac753f841f7bb329c9361.tar.zst astro-26bf12ef3c7ab874a23ac753f841f7bb329c9361.zip |
[Lit] render DSD attributes based on `shadowRootOptions` (#6351)
* [Lit] render DSD attributes based on `shadowRootOptions`
## Changes
- Update `@astrojs/lit`’s `server.js` to properly render elements with `delegatesFocus: false` set in their `shadowRootOptions`.
- Logic is based on `@lit-labs/ssr` [latest implementation as found here](https://github.com/lit/lit/blob/b0c3f82ef0f97326a205e77e7e1043b75a5cc53f/packages/labs/ssr/src/lib/render-value.ts#L738)
## Testing
A test was added to ensure an element with `delegatesFocus` set to true has this attribute properly included in the rendered static markup.
* chore: add changeset
Diffstat (limited to 'examples/framework-svelte/astro.config.mjs')
0 files changed, 0 insertions, 0 deletions