From ca0af1b5e2bf66356f42be3d9353fd7b440d3e8b Mon Sep 17 00:00:00 2001 From: Bonnie Zhou Date: Thu, 4 Jan 2018 18:04:04 -0500 Subject: [PATCH] feat(text-field): Handle leading/trailing icons in outlined text field (#1858) --- demos/text-field.html | 146 +++++++++++------- packages/mdc-textfield/mdc-text-field.scss | 41 ++++- .../outline/mdc-text-field-outline.scss | 2 - 3 files changed, 125 insertions(+), 64 deletions(-) diff --git a/demos/text-field.html b/demos/text-field.html index 6a45094be89..b2af5a1f7c2 100644 --- a/demos/text-field.html +++ b/demos/text-field.html @@ -49,14 +49,9 @@ background-color: #f2f2f2; } - .custom-text-field-input { - width: 300px; - } - .full-width-textarea-example { margin-top: 16px; } - @@ -275,28 +270,11 @@

Text Field box

Text Field - Leading/Trailing icons

-
- - Note: Some implementations utilizing leading and trailing icons may wish to set a width on the - input element to achieve uniform widths on text fields. - This demo achieves that by adding a custom class name: custom-text-field-input and setting - some style: - -
- -
-.custom-text-field-input {
-  width: 300px;
-}
-
event - +
@@ -304,31 +282,59 @@

Text Field - Leading/Trailing icons

- + delete
+
+
+ event + + +
+ + + +
+
+
+
+
+
+ + + delete +
+ + + +
+
+
+
- - + +
- - + +
- - + +
- - + +
- - + +
@@ -460,46 +466,68 @@

Full-Width Text Field and Textarea