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: icon bind to host in decorator #52

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

elite-benni
Copy link
Collaborator

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

icon

  • accordion
  • alert
  • alert-dialog
  • aspect-ratio
  • avatar
  • badge
  • button
  • calendar
  • card
  • checkbox
  • collapsible
  • combobox
  • command
  • context-menu
  • data-table
  • date-picker
  • dialog
  • dropdown-menu
  • hover-card
  • input
  • label
  • menubar
  • navigation-menu
  • popover
  • progress
  • radio-group
  • scroll-area
  • select
  • separator
  • sheet
  • skeleton
  • slider
  • switch
  • table
  • tabs
  • textarea
  • toast
  • toggle
  • tooltip
  • typography

What is the current behavior?

generateclasses was called on the setter

Closes #

What is the new behavior?

now the host class is set by a computed

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

refactor to the preferred binding in the decorator.
This way also computed is working directly for the binding.

addition to issue spartan-ng#46
Copy link

vercel bot commented Nov 15, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @goetzrobin on Vercel.

@goetzrobin first needs to authorize it.

The classes of the Hostbinding where not set correctly for onPush Hosts.
Classes where not merged correctly.
Now the classes of the icon are set and detected by the host correctly.
fixed unit tests as they would have never failed cause of setTimeout.

close spartan-ng#36
Copy link
Collaborator

@goetzrobin goetzrobin left a comment

Choose a reason for hiding this comment

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

LGTM!

@goetzrobin goetzrobin merged commit 1a00a01 into spartan-ng:main Nov 16, 2023
6 checks passed
@elite-benni elite-benni deleted the refactor-iss46 branch November 17, 2023 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants