0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🐛 Fix description title on feedback

This commit is contained in:
Eva 2024-01-16 16:59:26 +01:00 committed by Alonso Torres
parent 827609db79
commit 0370e8083a
2 changed files with 23 additions and 22 deletions

View file

@ -202,17 +202,15 @@
:on-change on-change)
(obj/clj->props))]
[:div.custom-input
{:class klass}
[:*
[:label label]
[:> :textarea props]
(cond
(and touched? (:message error))
[:span.error (tr (:message error))]
[:div {:class (dm/str klass " " (stl/css :textarea-wrapper))}
[:label {:class (stl/css :textarea-label)} label]
[:> :textarea props]
(cond
(and touched? (:message error))
[:span {:class (stl/css :error)} (tr (:message error))]
(string? hint)
[:span.hint hint])]]))
(string? hint)
[:span {:class (stl/css :hint)} hint])]))
(mf/defc select
[{:keys [options disabled form default] :as props

View file

@ -72,7 +72,6 @@
}
}
}
&.valid .help-icon,
&.invalid .help-icon {
right: $s-40;
@ -98,6 +97,7 @@
height: $s-16;
}
}
.invalid-icon {
width: $s-16;
height: $s-16;
@ -261,7 +261,6 @@
}
// MULTI INPUT
.custom-multi-input {
display: flex;
flex-direction: column;
@ -338,19 +337,9 @@
}
}
}
&.empty {
}
&.invalid {
}
&.focus {
}
&.valid {
}
}
// RADIO BUTTONS
.custom-radio {
display: grid;
grid-template-columns: repeat(3, 1fr);
@ -410,3 +399,17 @@
border: $s-1 solid var(--input-border-color-active);
}
}
//TEXTAREA
.textarea-label {
@include tabTitleTipography;
color: var(--modal-title-foreground-color);
text-transform: uppercase;
margin-bottom: $s-8;
}
.textarea-wrapper {
display: grid;
grid-template-rows: auto 1fr;
}