This makes a few small tweaks to how we define elements.
It adds a define() static member to the RelativeTimeElement class, which allows changing of tag/registry. It calls that method in the relative-time-element-define file.
This also exports the class as both named and default exports. We may drop the default export at a future date.
:wave: 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.
:art: 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.
:fast_forward: If this is a PR that includes changes to an interaction, please include a video recording in the description.
:warning: If this is urgent, please visit us in #primer on Slack and tag the first responders listed in the channel topic.
This makes a few small tweaks to how we define elements.
It adds a
define()
static member to theRelativeTimeElement
class, which allows changing of tag/registry. It calls that method in therelative-time-element-define
file.This also exports the class as both named and default exports. We may drop the default export at a future date.