mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2025-01-02 11:28:01 +03:00
Add back min height for writing text areas
This commit is contained in:
parent
a56dc32d10
commit
b170638ec6
@ -1,4 +1,4 @@
|
||||
module Nri.Ui.InputStyles exposing (Assets, CssClasses(..), inputLineHeight, inputPaddingVertical, styles, textAreaHeight, writingLineHeight, writingPadding, writingPaddingTop)
|
||||
module Nri.Ui.InputStyles exposing (Assets, CssClasses(..), inputLineHeight, inputPaddingVertical, styles, textAreaHeight, writingLineHeight, writingMinHeight, writingPadding, writingPaddingTop)
|
||||
|
||||
{-|
|
||||
|
||||
@ -7,7 +7,7 @@ module Nri.Ui.InputStyles exposing (Assets, CssClasses(..), inputLineHeight, inp
|
||||
|
||||
## Shared hardcoded values
|
||||
|
||||
@docs inputPaddingVertical, inputLineHeight, textAreaHeight, writingLineHeight, writingPadding, writingPaddingTop
|
||||
@docs inputPaddingVertical, inputLineHeight, textAreaHeight, writingLineHeight, writingPadding, writingPaddingTop, writingMinHeight
|
||||
|
||||
-}
|
||||
|
||||
@ -146,7 +146,7 @@ styles =
|
||||
, borderColor azure
|
||||
]
|
||||
, selector "textarea"
|
||||
[ minHeight (px 150)
|
||||
[ minHeight writingMinHeight
|
||||
]
|
||||
, selector "input"
|
||||
[ textAlign center
|
||||
@ -288,3 +288,8 @@ writingPadding =
|
||||
writingPaddingTop : Px
|
||||
writingPaddingTop =
|
||||
px 20
|
||||
|
||||
|
||||
writingMinHeight : Px
|
||||
writingMinHeight =
|
||||
px 150
|
||||
|
@ -211,7 +211,15 @@ calculateMinHeight textAreaStyle specifiedHeight =
|
||||
singleLineHeight
|
||||
|
||||
DefaultHeight ->
|
||||
InputStyles.textAreaHeight
|
||||
case textAreaStyle of
|
||||
DefaultStyle ->
|
||||
InputStyles.textAreaHeight
|
||||
|
||||
WritingStyle ->
|
||||
InputStyles.writingMinHeight
|
||||
|
||||
ContentCreationStyle ->
|
||||
InputStyles.textAreaHeight
|
||||
|
||||
|
||||
singleLineHeight : Css.Px
|
||||
|
Loading…
Reference in New Issue
Block a user