-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Replace Spinner with web component #2574
Replace Spinner with web component #2574
Conversation
5227498
to
d516b25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, nice!
app/javascript/alchemy_admin/components/alchemy_html_element.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
98d09b6
to
aa901ce
Compare
try to add a default custom component class for all Alchemy web components. This is inspired from LitElements, but it contains the functions that we are using. The API of the Spinner class is still the same. It is now adding the web component instead of the Handlebars template.
The option is only used in the image gallery, but is now possible to use every color inside the spinner.
aa901ce
to
9aad4b3
Compare
it is pretty basic for the moment. An update of Jest was necessary to have the latest support for jsdom.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work!
What is this pull request for?
Checklist