Skip to content

docs(config): add experimentalScopedSlotChanges extras flag#1307

Merged
tanner-reits merged 5 commits intomainfrom
docs/add-scoped-slot-flag
Jan 15, 2024
Merged

docs(config): add experimentalScopedSlotChanges extras flag#1307
tanner-reits merged 5 commits intomainfrom
docs/add-scoped-slot-flag

Conversation

@tanner-reits
Copy link
Copy Markdown
Contributor

@tanner-reits tanner-reits commented Jan 2, 2024

Adds a new experimentalScopedSlotChanges extras config option to toggle the new behavior for scoped components.

Related code changes: stenciljs/core#5220

Note: The first commit only alphabetizes the options, but results in what looks like many more changes

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stencil-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2024 4:02pm

### scopedSlotTextContentFix

An experimental flag that when set to `true`, aligns the behavior of invoking the `textContent` getter/setter on a scoped component to act more like a component that uses the shadow DOM. Specifically, invoking `textContent` on a component will adhere to the return values described in [MDN's article on textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent#description). Defaults to `false`.
<!-- TODO(NOW): confirm fix versions -->
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make sure these versions are accurate before this merges, just depends how this lines up with upcoming releases

@tanner-reits tanner-reits marked this pull request as ready for review January 3, 2024 20:00
@tanner-reits tanner-reits requested a review from a team as a code owner January 3, 2024 20:00
@tanner-reits tanner-reits requested review from christian-bromann and rwaskiewicz and removed request for a team January 3, 2024 20:00
Copy link
Copy Markdown
Member

@rwaskiewicz rwaskiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM - I'll give it another pass once I get to/through the impl PRs

Copy link
Copy Markdown
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown
Member

@rwaskiewicz rwaskiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approved the impl PR, I'm good with approving now and just landing it after you've bumped the version in the docs

@tanner-reits tanner-reits merged commit 17a8e75 into main Jan 15, 2024
@tanner-reits tanner-reits deleted the docs/add-scoped-slot-flag branch January 15, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants