1.0.2 • Published 5 years ago
@diekeure/feedback-link v1.0.2
dk-feedback-link
About
This custom element creates a link that opens a new window to the URL specified in data-url
with a query param originatingUrl=<myCurrentURL>
.
The content in the custom element is copied inside the link tag.
Usage
<dk-feedback-link data-url="//foo.bar">My awesome projected content</dk-feedback-link>
Attributes
data-url
: the link to open
Styling
You can prevent a FOUT by hiding the element until it is defined, by adding this css to your page:
dk-feedback-link:not(:defined) {
display: none !important;
}
Browser support
- Modern browsers (Chrome, Firefox): native
- Edge: requires this polyfill in your html
<head>
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.3.0/webcomponents-loader.js"></script>
- Internet Explorer: not supported