mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-24 08:53:33 +03:00
Textarea doesn't overflow container
Because the textarea label overflowed its container it was drawn seemingly closer to the content above it than user-set margins can account for. This then requires the user to add additional wrappers and margins to compensate. Drawing the textarea completely within its enclosing container makes this unnecessary.
This commit is contained in:
parent
c72be639a3
commit
e61c5b9127
@ -77,6 +77,7 @@ styles =
|
||||
Nri.Styles.styles "Nri-Textarea-"
|
||||
[ Css.class Container
|
||||
[ position relative
|
||||
, paddingTop (px 7)
|
||||
]
|
||||
, Css.class InvisibleLabel
|
||||
[ Nri.Accessibility.invisibleText
|
||||
@ -84,7 +85,7 @@ styles =
|
||||
, Css.class Label
|
||||
[ backgroundColor Nri.Colors.white
|
||||
, left (px 10)
|
||||
, top (px -7)
|
||||
, top (px 0)
|
||||
, padding2 (px 2) (px 5)
|
||||
, position absolute
|
||||
, Nri.Stylers.makeFont (Css.px 11) Nri.Colors.gray45
|
||||
|
Loading…
Reference in New Issue
Block a user