Skip to content

Navigation Menu

Sign in
Sign up

add slottable behavior - #283

Open
keithamus wants to merge 1 commit into
main from
add-slottable-behavior
Open

add slottable behavior #283
keithamus wants to merge 1 commit into
main from
add-slottable-behavior

Conversation

@keithamus

@keithamus keithamus commented Sep 22, 2022

Copy link
Copy Markdown
Contributor

This adds a new @slot decorator for querying/manipulating/listening for slot elements.

This also listens for slotchanged events and calls the setter which can be very useful for running side effects on a slot change.

keithamus requested review from a team and koddsson as code owners September 22, 2022 15:46
keithamus requested review from a team and removed request for a team and manuelpuyol October 12, 2022 13:49

Copy link
Copy Markdown

👋 Hello and thanks for pinging us! This issue or PR has been added to our inbox and a Design Infrastructure first responder will review it soon.

  • 🎨 If this is a PR that includes a visual change, please make sure to add screenshots in the description or deploy this code to a lab machine with instructions for how to test.
  • If this is a PR that includes changes to an interaction, please include a video recording in the description.
  • ⚠️ If this is urgent, please visit us in #primer on Slack and tag the first responders listed in the channel topic.

Copy link
Copy Markdown

I don't feel qualified to review this since I don't have much web component experience. I'll defer to @koddsson for review.

@jonrohan jonrohan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice functionality 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jonrohan jonrohan jonrohan approved these changes
@koddsson koddsson Awaiting requested review from koddsson

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /