Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: implement and use hostAttributes decorator #2452

Merged
merged 4 commits into from
Mar 6, 2024

Conversation

kyubisation
Copy link
Contributor

This replaces the usage of createRenderRoot for setting host attributes and instead uses the initializer functionality from lit to set static attributes.

@kyubisation kyubisation force-pushed the refactor-host-attributes branch from c755c10 to 3f1c131 Compare March 1, 2024 12:15
@github-actions github-actions bot temporarily deployed to preview-pr2452 March 1, 2024 12:26 Inactive
Copy link
Contributor

@jeripeierSBB jeripeierSBB left a comment

Choose a reason for hiding this comment

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

Very nice solution :)

src/components/core/common-behaviors/host-attributes.ts Outdated Show resolved Hide resolved
src/components/icon/icon-base.ts Show resolved Hide resolved
@jeripeierSBB
Copy link
Contributor

jeripeierSBB commented Mar 4, 2024

I'd suggest to check every component (the ones which did not use createrenderroot so far) as the migration effort is minimal.

@jeripeierSBB jeripeierSBB force-pushed the refactor-host-attributes branch from 3f1c131 to 75d7e4d Compare March 6, 2024 13:50
@codecov-commenter
Copy link

codecov-commenter commented Mar 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@292d316). Click here to learn what that means.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2452   +/-   ##
=======================================
  Coverage        ?   93.62%           
=======================================
  Files           ?      272           
  Lines           ?    23698           
  Branches        ?     2040           
=======================================
  Hits            ?    22188           
  Misses          ?     1477           
  Partials        ?       33           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot temporarily deployed to preview-pr2452 March 6, 2024 13:59 Inactive
@jeripeierSBB jeripeierSBB marked this pull request as ready for review March 6, 2024 15:03
@github-actions github-actions bot added the pr: peer review required A peer review is required for this pull request label Mar 6, 2024
Copy link
Contributor

@jeripeierSBB jeripeierSBB left a comment

Choose a reason for hiding this comment

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

Yay!

@github-actions github-actions bot added the pr: lead review approved Pull request has been approved by a lead review label Mar 6, 2024
@jeripeierSBB jeripeierSBB merged commit 5e4e0b5 into main Mar 6, 2024
22 checks passed
@jeripeierSBB jeripeierSBB deleted the refactor-host-attributes branch March 6, 2024 15:06
@github-actions github-actions bot removed the pr: peer review required A peer review is required for this pull request label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: lead review approved Pull request has been approved by a lead review preview-available
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants