use custom elements instead of adding css classes for selectors
This commit is contained in:
parent
742b97cb4b
commit
f402011c82
9 changed files with 38 additions and 34 deletions
|
@ -2,7 +2,7 @@ const html = require('choo/html');
|
|||
|
||||
module.exports = function(state, emit) {
|
||||
return html`
|
||||
<div
|
||||
<send-modal
|
||||
class="absolute pin flex items-center justify-center overflow-hidden z-40 bg-cloud md:my-8"
|
||||
onclick="${close}"
|
||||
>
|
||||
|
@ -14,7 +14,7 @@ module.exports = function(state, emit) {
|
|||
${state.modal(state, emit, close)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</send-modal>
|
||||
`;
|
||||
|
||||
function close(event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue