187 Commits

Author SHA1 Message Date
Jeff Verkoeyen
09a07ca6d2 Internal change
PiperOrigin-RevId: 333130898
2020-09-22 12:11:00 -07:00
Wenyu Zhang
81bd1dd07f Internal change.
PiperOrigin-RevId: 309284703
2020-04-30 13:09:22 -07:00
Bryan Oltman
86b4fbcb2c
[TextFields] Delete deprecated MDCTextFieldTypographyThemer (#9689)
MDCTextFieldTypographyThemer is deprecated and has no internal usage.

Fixes #9661
2020-02-11 18:22:22 -05:00
Cody Weaver
3b3d288ea4
[TextFields] Add theming extension for underline controller (#9437)
In #9109  we removed the color themer for the underline controller. This change closes #9371  which will allow clients to theme their underline controller text fields via a theming extension. This change will theme both color and typography.

*Note* [Material](material.io) recommends using a [filled or outlined text field](https://material.io/components/text-fields/).

| Resting | Active |
| --- | --- |
|![Simulator Screen Shot - iPhone 8 Plus - 2020-01-16 at 13 13 28](https://user-images.githubusercontent.com/7131294/72563237-1811ed80-3862-11ea-8788-816c927f03e4.png)|![Simulator Screen Shot - iPhone 8 Plus - 2020-01-16 at 13 13 26](https://user-images.githubusercontent.com/7131294/72563252-1cd6a180-3862-11ea-97c9-6d7c82f6878d.png)|

Closes #9371 
Closes #9242
2020-01-16 14:20:09 -08:00
Andrew Overton
703589b3eb
[TextFields] Give MDCTextField clear button proper hit area insets (#8790)
This PR makes the MDCTextField clear button always meet the minimum touch target.

Closes #5373.
2020-01-02 08:31:46 -05:00
Andrew Overton
8a510746f6
Delete MDCOutlinedTextFieldColorThemer (#9274)
BUILD and Podspec changes coming with the deletion of MDCFilledTextFieldColorThemer.

Closes #9080.
2019-12-16 09:51:34 -05:00
Andrew Overton
df1ac34ea1
Delete MDCTextFieldFontThemer (#9226)
Delete MDCTextFieldFontThemer. Closes #9086.
2019-12-10 12:32:48 -05:00
Andrew Overton
cd7172a36a
[TextFields] Remove usage of MDCOutlinedTextFieldColorThemer (#9214)
This goal of this PR is to remove usage of MDCTextFieldColorThemer in preparation for its deprecation and deletion. The snapshot tests that were using this themer no longer have color theming. There is a TODO in each of these tests saying to use a theming extension if/when one that will work for them is written.

Related to #9080
2019-12-10 11:56:25 -05:00
Andrew Overton
40afee6e0d
[TextFields] Remove MDCTextFieldTypographyThemer from snapshot tests (#9196)
This goal of this PR is to remove usage of MDCTextFieldTypographyThemer from MDCTextField snapshot tests in preparation for its deprecation and deletion. In cases where theming with a theming extension/container scheme is available I'm changing the snapshot test files to use those. In cases where there is no equivalent theming extension I am foregoing theming. The two things that have themers but lack theming extensions are MDCTextField itself (we only have theming extensions for the filled and outlined textfield controllers) and the MDCTextInputControllerOutlinedTextArea.

Related to #9168
2019-12-09 15:51:27 -05:00
Bryan Oltman
87b9dd5a7d
[TextFields] Delete MDCTextFieldColorThemer (#9109)
Fixes #9083 
Fixes #9084
Fixes #9085
Fixes #9112
2019-12-05 16:38:39 -05:00
Wenyu Zhang
593cf1e621 Revert "[TextFields] Check if placeholder is hidden before verbalizing it in voice over. (#8804)"
This reverts commit f9c17caf1bffd8e4538ee2c587d780e55437243c.
2019-11-22 10:56:15 -05:00
Wenyu Zhang
d04f63a231 Revert "[TextFields] simplify test names since the name of the file already gives context. (#8952)"
This reverts commit d6ae7f6782bb554d043879b5965e9b2708145a60.
2019-11-22 10:55:27 -05:00
Wenyu Zhang
39fe0f89f1 Revert "[TextFields] Correction to the accessibility label (#8976)"
This reverts commit c498516b358998c9853e9934df9b643d4256b9da.
2019-11-22 10:51:57 -05:00
Randall Li
c498516b35
[TextFields] Correction to the accessibility label (#8976)
UITextField verbalizes the placeholder in a lower pitch when no text has been entered. This change incorporates this behavior into what values get added to the MDCTextField's accessibilityLabel.

Before after videos:
[singleFix.zip](https://github.com/material-components/material-components-ios/files/3853326/singleFix.zip)


QA=Notice that "state" is verbalized when it is not visible on screen in the after.
more info at #7513
2019-11-15 22:41:01 -05:00
Randall Li
d6ae7f6782 [TextFields] simplify test names since the name of the file already gives context. (#8952)
this was feed back in https://github.com/material-components/material-components-ios/pull/8902#discussion_r346874329

Applying change here.
2019-11-15 11:44:23 -08:00
Randall Li
1c17792b36
[MDCTextfields] Added accessibility label tests for MDCMultilineTextFields (#8902)
Copied the logic from the single line textfield. over to the multiline one.

part of https://github.com/material-components/material-components-ios/issues/7513
2019-11-15 13:24:54 -05:00
Randall Li
f9c17caf1b
[TextFields] Check if placeholder is hidden before verbalizing it in voice over. (#8804)
[TextFields] Add check for placeholder before adding to the accessibility strings spoken by voice over.

Also added changed example to remove the floating label so that we can check that voice over correctly verbalizes only the visible text.

Before and After zip:
[BeforeAfterVideos.zip](https://github.com/material-components/material-components-ios/files/3843558/BeforeAfterVideos.zip)

QA=Notice that "state" is verbalized when it is not visible on screen in the after.
more info at #7513
2019-11-15 12:21:40 -05:00
Randall Li
a4decc6c8e
Fix spelling mistake (#8910)
spelling mistake was made in https://github.com/material-components/material-components-ios/pull/8830

while working on #7513
2019-11-15 11:14:04 -05:00
Randall Li
3d1b6f9acc
[TextFields] Added tests for accessibilityLabel (#8830)
Related to https://github.com/material-components/material-components-ios/pull/8804 which got feedback asking for tests. This puts in tests before that change.

more info at #7513
2019-11-15 10:06:40 -05:00
Bryan Oltman
42e220d9c1
[TextFields] Convert clear button to MDCButton (#8784)
* [TextFields] Convert clear button to MDCButton

* Add buttons to build file

* Build file update

* Update build file again

* [Dialogs] Set dialog message accessibilityFrame based on visible message text

* Revert "[Dialogs] Set dialog message accessibilityFrame based on visible message text"

This reverts commit ae6154ed8b2df5a3ad73ad2e7923ed404297f821.

* Add snapshot test for clear button ripple

* Add ripple snapshot goldens

* Remove unnecessary cornerRadius setting

* Cast clear button ink color alpha to CGFloat

* Add Button and Ripple dependencies to snapshot tests

* PR feedback

* clang

* Fix imports
2019-11-13 10:11:27 -05:00
Andrew Overton
02f9c9f01d
Move new TextFields into TextControls directory (#8726)
In this PR I extract the new TextFields from the old TextFields directory. In the future, if we bring over the input chip view and text area, they will go under this new TextControls directory as well.

Closes #8684.
2019-11-07 14:17:56 -05:00
Andrew Overton
dec1670f8b
[TextFields] Capture snapshots outside of view (#8718)
This PR makes it so that textcontrol snapshot test cases validate UIView snapshots of text controls inside container views as opposed to validating just UIView snapshots of text controls themselves. This is so that when floating labels go outside the bounds, as they partially do with the outline style, that can be captured in the snapshot.

It also (I think) gets rid of some flakiness in the MDCOutlinedTextFieldSnapshotTests with the changes to MDCTextControlStyleOutlined.

Here's an example snapshot diff:

<img width="868" alt="Screen Shot 2019-11-04 at 4 48 31 PM" src="https://user-images.githubusercontent.com/8020010/68161034-ff608f80-ff22-11e9-8a64-1234635f3681.png">
2019-11-04 19:51:59 -05:00
Andrew Overton
cfc699b199
[TextFields] Add outlined textfield (#8705)
This PR adds the outlined textfields. The snapshots look a little weird because the way the snapshot tests are currently implemented they only get an image that's as big as the frame of the view. In a follow up PR I'm going to change that, so the images will have the entire floating label (which goes above the top of the view) for example.

![textfield-example](https://user-images.githubusercontent.com/8020010/67978102-ba212280-fbef-11e9-8802-7a0b230f900a.gif)


Closes #6942.
2019-11-01 16:23:55 -04:00
Andrew Overton
cc5d2c1504
[TextFields] Change base textfield floating label scale factor. (#8704)
In a recent PR I made the floating label the same size as the non-floating label because I thought it brought the MDCBaseTextField closer to being the "absence of style." In this PR I make it smaller again because I decided I think it just looks bad.

I also added an override for `-setBorderStyle:` that will prevent non-base textfields from having border styles like `.roundedRect`.

Related to #6942.
2019-10-31 14:58:14 -04:00
Andrew Overton
f2e5fe4fbd
Add filled textfields (#8674)
This PR adds MDCFilledTextField, updates the example to include it, and adds some unit tests for MDCFilledTextField's public API. I will add snapshot tests to this PR after #8670 is merged in.

Related to #6942.
2019-10-31 12:50:35 -04:00
Andrew Overton
2ea2f01207
[TextFields] Add animation duration property to properly snapshot test MDCBaseTextField's subclasses (#8693)
This PR adds an `animationDuration` property to MDCBaseTextField. I'm doing this because I ran into problems snapshot testing MDCFilledTextField. Its style object uses Core Animation, so the `[UIView setAnimationsEnabled:{NO/YES}]` calls I'm making in `-setUp`/`-tearDown` don't have any effect on it. However, they do have an effect on the label animation, which uses UIView animations. This PR has no behavioral or public API changes. 

On one hand, this change goes against the idea that you shouldn't change source code for the sake of testing. On the other hand, there's nothing wrong with rewriting existing code so that it's more testable.

Related to #6942.
2019-10-30 09:22:50 -04:00
Yarden Eitan
8dbebd1c6c
[TextFields] Bring back original textInsets API for clients sub… (#8688)
In #8665 I added to the `textInsets:` API an additional parameter, causing some breakages for clients who were relying on the original method signature for their subclassing.

I am bringing back the original API along with the new one, allowing clients to use either, and not breaking clients based on the new logic.
2019-10-29 13:46:05 -04:00
Andrew Overton
f5e955d854
[TextFields] Refactor snapshots in preparation for more types of textfields (#8670)
TL;DR -- This PR results in less duplication than if I were to just rewrite the same snapshot tests for MDCBaseTextField, MDCFilledTextField, and MDCOutlinedTextField, but there is still more duplication than I would like for there to be because of a bug that makes inheritance based snapshot tests not workable internally.

Before bringing over MDCFilledTextField and MDCOutlinedTextField I wanted to have some way to try to reduce code duplication in the snapshot tests for the three textfields. The snapshot tests for MDCTextField make use of inheritance to achieve this. I eventually want to do something similar, but I want to wait until [b/133313258](http://b/133313258) is resolved before I do that, because I want for the snapshot tests to be able to run internally. Until then, I suggest we have something like this. There's a little less duplication than if we just wrote the same snapshot test "the old fashioned way" for each textfield class, and there is some shared infrastructure, like in `MDCTextControlSnapshotTestHelpers`. In the future, if/when other MDCTextControls are brought into the library, they can also use of things like this.

I want to stress that this is not supposed to be the final state of snapshot testing for the new textfields. It's just one step closer. I'm still figuring it out.

Related to #6942.
2019-10-29 12:41:47 -04:00
Yarden Eitan
2c99391aef
[TextFields] Add support for multi-line in helper and error tex… (#8665)
This PR adds initial support for multi-line helper and error text.

It is important to note that this support is **opt-in**. This means that you will only get multi-line support if you change the leadingUnderlineLabel to have numberOfLines = 0 (or > 1) and change the label's break mode to be word wrapping.
This is why the snapshots that didn't have a change in their testing setup (to have this setup), stayed unchanged.

There were 2 issues that surfaced when trying to deal with this:

1. The calculation of the bottom inset for the labels was always calculated as if there is only 1 line. So I needed to add a calculation for the amount of lines there actually were.

2. To calculate the number of lines we need to know the width of the textfield. Because the snapshot tests were using `sizeThatFits:size` to take the snapshot tests, but the intrinsicContentSize didn't get the width, it calculated as if the textfield's width is 0, which led to the number of lines calculation to be off. Therefore, when sizeThatFits is invoked, we capture the width hint set by sizeThatFits and pass it on to the underline label so it is aware on how wide it should be when calculating how much height to provide for the label.

Substantially eases the work needed for #2153 

Closes #5762 

![textfields-fix](https://user-images.githubusercontent.com/4066863/67688828-d19ea800-f970-11e9-8bfb-911583f84ff8.gif)
2019-10-28 16:10:26 -04:00
Robert Moore
bdf183db46
[TextFields] Add tests for preferredFont APIs. (#8635)
Adds tests to demonstrate that MDCTextField responds as expected to `-[UIFont
preferredFontForTextStyle:]` APIs.

Closes #8640
2019-10-24 09:55:06 -04:00
Andrew Overton
e2d88e8747
[TextFields] Add density and preferredContainerHeight as private functionality (#8607)
This PR brings over notions of `density` and `preferredContainerHeight`. Density refers to how vertically "squished" the textfields appear. `preferredContainerHeight` is a desired height for the container of the textfield. The container of the textfield is the rect within the outline in outlined textfields and the filled rect in filled textfields.

This functionality will remain private for now. In the near-ish future we will either expose it or delete it. Deleting it will not result in behavioral changes. The reason for bringing it over now is that it will make it significantly easier to bring everything else over.

Related to #6942.
2019-10-22 16:18:07 -04:00
Yarden Eitan
e3acbb9b86
[TextFields] Allow customization of overflow and lines on OutlinedTextArea (#8570)
This PR moves the repeated overriding of expandsOnOverflow and minimumLines in the updateLayout which is repeatedly called throughout the lifecycle.

Instead, we are initializing those values at first to be defaults, and then they can be changed by the client using the MDCTextInputControllerBase API for those properties.

Tested in example to make sure this is working correctly.

Closes #8559
Closes #8558

The snapshots look like they are cut in the middle, this is because they are getting their bounds using `intrinsicContentSize` which does not take expandsToOverflow into regards. See: https://github.com/material-components/material-components-ios/issues/8573 for more info.
2019-10-11 15:58:59 -04:00
Andrew Overton
f06651ee89
[TextFields] Add assistive label view (#8539)
This PR adds assistive labels to MDCBaseTextField. It does so using a private class called MDCTextControlAssistiveLabelView. The textfield's layout object determines the frame of the MDCTextControlAssistiveLabelView just like it does with any other subview. What makes the MDCTextControlAssistiveLabelView different from other subviews of MDCBaseTextField is that it also has its own layout object. The MDCBaseTextFieldLayout calculates an MDCTextControlAssistiveLabelViewLayout which the MDCTextField applies to the MDCTextControlAssistiveLabelView at the same time it applies the rest of the layout.

The code in MDCBaseTextFieldLayout's layout calculation method ends up looking like this:

```Objective-c
  self.assistiveLabelViewLayout = [[MDCTextControlAssistiveLabelViewLayout alloc]
                         initWithWidth:textFieldWidth
                    leftAssistiveLabel:leftAssistiveLabel
                   rightAssistiveLabel:rightAssistiveLabel
            assistiveLabelDrawPriority:assistiveLabelDrawPriority
      customAssistiveLabelDrawPriority:customAssistiveLabelDrawPriority
                     horizontalPadding:kHorizontalPadding
           paddingAboveAssistiveLabels:positioningReference.paddingAboveAssistiveLabels
           paddingBelowAssistiveLabels:positioningReference.paddingBelowAssistiveLabels
                                 isRTL:isRTL];
  self.assistiveLabelViewFrame = CGRectMake(0, positioningReference.containerHeight, textFieldWidth,
                                            self.assistiveLabelViewLayout.calculatedHeight);
```

And the code in MDCBaseTextField's `-postLayoutSubviews` method ends up looking like this:
```
  self.assistiveLabelView.frame = self.layout.assistiveLabelViewFrame;
  self.assistiveLabelView.layout = self.layout.assistiveLabelViewLayout;
  [self.assistiveLabelView setNeedsLayout];
```
All the other MDCTextControls I plan on building will use this exact same pattern.

Related to #6942.
2019-10-04 21:26:42 -04:00
Galia Kaufman
a1c2e4b0a9
[TextField] Adding floatingPlaceholder Error Active color API to controller (#8526)
Adding an active-state error color API for the floating placeholder label (the label that floats up when the TextField is in editing mode).
2019-10-03 10:11:34 -04:00
Galia Kaufman
b52b0b4118
[TextFields] Adding border stroke color (#8510)
Adding a borderStrokeColor property to input text field to allow better contrast ratio in theming.
2019-10-03 10:04:40 -04:00
Andrew Overton
9d814f27fc
[TextFields] Bring more of base positioning reference over (#8530)
This PR brings more of the MDCTextControlVerticalPositioningReferenceBase over. The positioning reference objects provide information about the vertical positioning of subviews in MDCTextControls. Each MDCTextControlStyle vends a different positioning reference object to be used by the layout object.

It is important to remember that this PR does not bring over everything the positioning reference object does. Things like MDCTextControl density (dense textfields are textfields that are squished vertically so more textfields can be shown using less space) are made possible with this object.

Related to #6942.
2019-10-01 15:02:12 -04:00
Andrew Overton
2420eba216
[TextFields] Rename "contained input view" to "text control" (#8524)
In this PR I am beginning the naming transition from "contained input view" to "text control." This is just a renaming PR, there are no other changes.

At some point after this I want to make it its own component, rather than an extension on TextFields, in the spirit of Ripple and Ink.

Related to #6942.
2019-09-27 12:07:16 -04:00
Robert Moore
0ecae7177b
[TextFields] Preserve placeholder font. (#8521)
When the `placeholderLabel.font` is different from the `font` property on an
MDCTextInputCommonFundament, it was possible that the placeholder font would
be overwritten by the `.font` property accidentally.

|Before|After|
|---|---|
|![textfield-font-broken](https://user-images.githubusercontent.com/1753199/64789910-32019380-d543-11e9-90c0-5362c54cc18c.gif)|![textfield-fontfix-after](https://user-images.githubusercontent.com/1753199/64789916-35951a80-d543-11e9-9a67-e5b15169fc66.gif)|

**Testing Steps**
1. Create an MDCTextField and MDCTextInputControllerFilled
2. Assign different fonts to the controller's `textInputFont` and
   `inlinePlaceholderFont`.
3. Tap into the text field to have it become the first responder and observe
   the placeholder font.
4. Type one letter into the text field and observe the placeholder font.

**Expected Outcome**
Typing the letter does not cause the placeholder font to change.

**Note**: This is a roll-forward of commit d66d586

Closes #8390
2019-09-27 08:40:05 -04:00
Andrew Overton
27015d885b
[TextFields] Tinkering with snapshot tests (#8511)
This PR contains some improvements to MDCBaseTextField snapshot tests. The aim is to reduce the amount of time it takes for them to run. I'm still getting a sense of how much time these changes save.

Related to #6942.
2019-09-26 16:49:23 -04:00
Andrew Overton
6febfa95cf
[TextFields] Add some placeholder logic (#8448)
This PR adds some placeholder support to MDCBaseTextField.

MDCBaseTextField has some special considerations related to placeholder visibility tthat UITextField does not have due to the fact that the label can sometimes occupy the space where the placeholder goes when there is no text.

Here's a screenshot of an MDCBaseTextField with a placeholder:
<img width="363" alt="Screen Shot 2019-09-26 at 11 03 09 AM" src="https://user-images.githubusercontent.com/8020010/65700251-4ec2be80-e04d-11e9-93ab-a75a60c88ada.png">

Related to #6942.
2019-09-26 12:48:22 -04:00
Andrew Overton
85bd705a22
[TextFields] Add some important protocols (#8493)
This PR adds the MDCContainedInputView protocol and the MDCContainedInputViewStyle protocol. MDCContainedInputView is the protocol that all the contained input views conform to. It has properties for all of the things that contained input views should have in common. This includes a style property, which is an object conforming to MDCContainedInputViewStyle. The main job of the style object is to apply various visual decorations on the textfield, like filled backgrounds for filled textfields or outlines for outlined textfields. The style objects also vend the vertical positioning reference objects, which are the things that determine the vertical distances between the textfield's subviews. This makes sense when you consider that the differences in those distances depend on the style of the textfield, i.e. whether it's filled or outlined.

Related to #6942.
2019-09-26 09:33:47 -04:00
Andrew Overton
e1c4832076
[TextFields] Implement some UIView overrides in MDCBaseTextField (#8494)
This PR adds a bit some UIView overrides to MDCBaseTextField with some additional minor cleanup and wiring, and a disabled snapshot test :D

Related to #6942.
2019-09-25 11:12:10 -04:00
Andrew Overton
b6eb3d73a0
[TextFields] Add initial stateful coloring stuff (#8406)
This PR adds stateful coloring functionality to MDCBaseTextField. It ended up being a little bigger than I would have hoped, but it's pretty straightforward.

I know there were concerns about grouping colors in the same object. I don't know where we currently stand on that, but the way I have it here it shouldn't be too hard to change later if it turns out this approach doesn't work.

NOTE: The recent design doc on custom states specifies that new state constants should take the form of `MDC<#Class#>State<#State#`. However, I didn't want to call it MDCBaseTextFieldStateEditing because it's going to be used by not only its subclasses (MDCFilledTextField and MDCOutlinedTextField), but also other contained input views, like the input chip views and text areas. For that reason, I called it MDCTextControlStateEditing. This way the name makes sense for all of these text related control classes. More can be read about this at go/thoughts-on-custom-states.

Related to #6942.
2019-09-23 16:05:50 -04:00
Bryan Oltman
d66d586cf1 Revert "[TextFields] Preserve placeholder font. (#8444)"
This reverts commit 8200fd04f5b70d15cf3fa10e8d6586c54fafb45f.
2019-09-19 13:13:58 -04:00
Robert Moore
8200fd04f5
[TextFields] Preserve placeholder font. (#8444)
When the `placeholderLabel.font` is different from the `font` property on an
MDCTextInputCommonFundament, it was possible that the placeholder font would
be overwritten by the `.font` property accidentally.

|Before|After|
|---|---|
|![textfield-font-broken](https://user-images.githubusercontent.com/1753199/64789910-32019380-d543-11e9-90c0-5362c54cc18c.gif)|![textfield-fontfix-after](https://user-images.githubusercontent.com/1753199/64789916-35951a80-d543-11e9-9a67-e5b15169fc66.gif)|

**Testing Steps**
1. Create an MDCTextField and MDCTextInputControllerFilled
2. Assign different fonts to the controller's `textInputFont` and
   `inlinePlaceholderFont`.
3. Tap into the text field to have it become the first responder and observe
   the placeholder font.
4. Type one letter into the text field and observe the placeholder font.

**Expected Outcome**
Typing the letter does not cause the placeholder font to change.

Closes #8390
2019-09-12 12:06:11 -04:00
Andrew Overton
2d747d5da1
[TextFields] Try new approach to snapshot testing textfields (#8407)
* Try new approach to snapshot testing textfields

* Delete NSLog and rename test case and delete old golden

* Run clang
In this PR I'm trying a new approach for snapshot testing MDCBaseTextField. Getting an accurate snapshot of a textfield that's editing is not very straightforward. In order to do it here I had to do a few things:
1. Add it to the snapshot test's app host's key window.
2. Take a UIView snapshot of it from the main thread.
3. Verify the golden using that UIView snapshot, as opposed to the view itself.

This PR is kind of a test. Someone who knows a lot more about snapshot testing might see something wrong with it that I'm missing 😅

Related to #6942.
2019-09-09 16:17:23 -04:00
Andrew Overton
ab4f218a09
[TextFields] Add contained input view clear button (#8247)
This PR brings the Contained Input View clear button over to the skeleton MDCBaseTextField.

Related to #6942.

Here's a gif:
![clearbutton](https://user-images.githubusercontent.com/8020010/63624977-371a9500-c5cc-11e9-9825-1e6d30b28686.gif)
2019-08-30 09:52:37 -04:00
Andrew Overton
70daa8f70d
[TextFields] Add floating label to MDCBaseTextField (#8358)
This PR brings over a very rudimentary version of floating label support for contained input view based textfields. A lot of this stuff is going to be replaced by other stuff when the time is right. 
Part of #6942.

Here's a gif:
![FloatingLabel](https://user-images.githubusercontent.com/8020010/63528277-a9a64a80-c4d0-11e9-82a8-1bb78b39fc5f.gif)
2019-08-22 15:22:13 -04:00
Andrew Overton
35c01a8354
[TextFields] Add initial text rect logic (#8324)
This PR adds initial textRect layout calculation logic to MDCBaseTextField and updates the snapshots CORRECTLY as LFS pointers.

Part of #6942.
2019-08-21 13:15:35 -04:00
Cody Weaver
81729e13e3
[TextFields] Add MaterialElevation support. (#8333)
Adds conformance to MDCElevatable and MDCElevationOverriding to MDCMultilineTextField.

Closes #8011
2019-08-16 15:29:17 -04:00