From 8fdc53f4c8125140624da087a2b05b60397e6c7e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 13 Feb 2022 19:54:26 +0100 Subject: Fix dialog+backdrop --- tpl/objects/text-field.pug | 52 +++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'tpl/objects/text-field.pug') diff --git a/tpl/objects/text-field.pug b/tpl/objects/text-field.pug index d33d3b2..2e9827b 100644 --- a/tpl/objects/text-field.pug +++ b/tpl/objects/text-field.pug @@ -1,33 +1,33 @@ include icon.pug mixin text-field - - const slots = {} + - const slots = {} - mixin slot(key) - - slots[key] = block + mixin slot(key) + - slots[key] = block - - - block ? block() : undefined + - + block ? block() : undefined - let classes = { - 'o-text-field': true, - 'o-text-field--ext': attributes.ext, - 'is-invalid': attributes.invalid, - 'is-disabled': attributes.disabled, - 'l-card': !!block, - 'l-card--flush': !!block, - 'l-card--gapless': !!block, - 'u-p-xs': !!block - } + let classes = { + 'o-text-field': true, + 'o-text-field--ext': attributes.ext, + 'is-invalid': attributes.invalid, + 'is-disabled': attributes.disabled, + 'l-card': !!block, + 'l-card--flush': !!block, + 'l-card--gapless': !!block, + 'u-p-xs': !!block + } - div(class=classes aria-disabled=attributes.disabled && String(attributes.disabled)) - if !!block - if slots.pre - - slots.pre() - input.o-text-field__native.l-card__block.l-card__block--main&attributes(attributes) - if slots.post - - slots.post() - .o-text-field__bg - else - input.o-text-field__native&attributes(attributes) - .o-text-field__bg + div(class=classes aria-disabled=attributes.disabled && String(attributes.disabled)) + if !!block + if slots.pre + - slots.pre() + input.o-text-field__native.l-card__block.l-card__block--main&attributes(attributes) + if slots.post + - slots.post() + .o-text-field__bg + else + input.o-text-field__native&attributes(attributes) + .o-text-field__bg -- cgit v1.2.3-54-g00ecf