8 Commits

Author SHA1 Message Date
Jeff Verkoeyen
a8e4831fd0 Flattening all unit tests into single directories as per convention.
PiperOrigin-RevId: 367426300
2021-04-08 07:33:29 -07:00
Andrew Overton
2a31a3162f [TextControls] Disable label animation when label is truncated
PiperOrigin-RevId: 367256976
2021-04-07 11:12:32 -07:00
Andrew Overton
52e9d15a2b [TextControls] Add placeholder to text area
PiperOrigin-RevId: 341453573
2020-11-09 11:53:48 -08:00
Andrew Overton
d729b5c464 [TextControls] Use custom leadingView/trailingView instead of UITextField's leftView/rightView
PiperOrigin-RevId: 341104274
2020-11-06 13:09:58 -08:00
Andrew Overton
cfd9b3ff56 [TextControls] Make text areas shorter when there is no floating label
PiperOrigin-RevId: 319228270
2020-07-01 08:22:48 -07:00
Andrew Overton
765676cca8 [TextControls] Rename + small refactor of horizontal positioning stuff
PiperOrigin-RevId: 316164753
2020-06-12 13:21:48 -07:00
Andrew Overton
c302339943 [TextControls] Change side view positioning for MDCUnderlinedTextField
This change introduces a new private protocol, MDCTextControlTextField, which inherits from MDCTextControl. This protocol adds one property, of a new enum, MDCTextControlTextFieldSideViewVerticalPosition. This type helps MDCBaseTextFieldLayout determine how to vertically position side views. The purpose is to allow MDCUnderlinedTextField to vertically align its side views with the text rect, as opposed to vertically centering them in the container, like the filled and outlined styles do. I'm not sure about the name `MDCTextControlTextFieldSideViewVerticalPosition`, but other ones I considered that were maybe more clear were too ridiculously long.

PiperOrigin-RevId: 316028095
2020-06-11 19:52:03 -07:00
Andrew Overton
6f169c9950 [TextControls] Update Podspec after TextControls changes
PiperOrigin-RevId: 315477850
2020-06-09 07:17:11 -07:00