From 28e538d212e2e4567dac170e824e7ae8be834c0e Mon Sep 17 00:00:00 2001 From: Jonas Kuske <30421456+jonaskuske@users.noreply.github.com> Date: Sun, 31 May 2020 07:45:10 +0200 Subject: [PATCH] feat: respect cols and rows attrs on textarea --- src/parts/_forms.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/parts/_forms.css b/src/parts/_forms.css index 8013083..693ce37 100644 --- a/src/parts/_forms.css +++ b/src/parts/_forms.css @@ -58,10 +58,17 @@ textarea { } textarea { + display: block; margin-right: 0; - width: 100%; box-sizing: border-box; resize: vertical; +} + +textarea:not([cols]) { + width: 100%; +} + +textarea:not([rows]) { min-height: 140px; }