NoRedInk / noredink-ui / Nri.Ui.InputStyles.V4

Changes from V3

- Remove ContentCreation theme

Patch changes

Changes from V2

InputStyles used by the TextInput and TextArea widgets.

label : Theme -> Basics.Bool -> Css.Style


type Theme
    = Standard
    | UserGenerated
    | Writing

input : Theme -> Css.Style

In order to use these styles in an input module, you will need to add the class "override-sass-styles". This is because sass styles in the monolith have higher precendence than the class styles here.

Shared hardcoded values

inputPaddingVertical : Css.Px

inputLineHeight : Css.Px

textAreaHeight : Css.Px

writingLineHeight : Css.Px

writingPadding : Css.Px

writingPaddingTop : Css.Px

writingMinHeight : Css.Px

defaultMarginTop : Basics.Float

focusedInputBoxShadow : String

focusedErrorInputBoxShadow : String

errorClass : String

inputClass : String