<custom-dialog>
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
๐พ replit
<!-- โญ๏ธ template for custom-dialog -->
<template id="tmpl">
<style>
/* โญ๏ธ select host (from inside) */
:host {
display: inline-block;
border: 1px solid blue;
padding: 10px;
}
/* โญ๏ธ select host with class="centered" */
:host(.centered) {
position: fixed; /* โญ๏ธ relative to viewport */
left: 50%;
top: 50%;
transform: translate(-50%, -50%);