From 56267095cba4425ddb70e2b70ab692db05db0132 Mon Sep 17 00:00:00 2001 From: David Hudson Date: Sun, 18 Sep 2016 01:47:07 +0900 Subject: [PATCH] [Forms] Add style for small textareas Issue #1184. This allows for a generically sized text area in forms. I am anticipating some potential feedback on this given the approach and the sizing I chose may or may not be ideal for your requirements. --- platform/commonUI/general/res/sass/controls/_controls.scss | 1 + platform/core/bundle.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/commonUI/general/res/sass/controls/_controls.scss b/platform/commonUI/general/res/sass/controls/_controls.scss index 7900739668..d1935d8ce0 100644 --- a/platform/commonUI/general/res/sass/controls/_controls.scss +++ b/platform/commonUI/general/res/sass/controls/_controls.scss @@ -216,6 +216,7 @@ input[type="search"] { .l-input-lg input[type="text"] { width: 100% !important; } .l-input-med input[type="text"] { width: 200px !important; } .l-input-sm input[type="text"] { width: 50px !important; } +.l-textarea-sm textarea { position: relative; height: 50px; } .l-numeric input[type="text"] { text-align: right; } .input-labeled { diff --git a/platform/core/bundle.js b/platform/core/bundle.js index 0f2ba311c3..4b9e2b9adb 100644 --- a/platform/core/bundle.js +++ b/platform/core/bundle.js @@ -259,7 +259,7 @@ define([ "property": "notes", "control": "textarea", "required": false, - "cssclass": "field-notes" + "cssclass": "l-textarea-sm" } ] },