Nobody
631d04a9e0
[M3CButton] Consider attributed title when calculating and updating content insets.
...
PiperOrigin-RevId: 513567489
2023-03-02 10:01:59 -08:00
Randall Li
1c2393a8de
Add test for M3CButton shadowForState.
...
PiperOrigin-RevId: 496731889
2022-12-20 13:07:27 -08:00
Mila Green
9afc1f5752
Add tests for M3CButton tintColor.
...
PiperOrigin-RevId: 496711582
2022-12-20 11:41:59 -08:00
Randall Li
9e0629f135
[M3CButton] Changed the name of test classes.
...
PiperOrigin-RevId: 495048090
2022-12-13 09:45:04 -08:00
Randall Li
bea3c621f9
[M3CButtons] Update insets when changing selected state.
...
PiperOrigin-RevId: 494895683
2022-12-12 19:42:56 -08:00
Randall Li
a319a74c2a
[M3CButtons] Update insets when removing the title.
...
PiperOrigin-RevId: 494895177
2022-12-12 19:39:56 -08:00
Randall Li
e3555d3e19
[M3CButton] Copied over MDCButton tests that capture odd UIButton behavior.
...
We want to know if it changes in an API drop from apple so that we can also change our subclass.
PiperOrigin-RevId: 494788722
2022-12-12 12:02:35 -08:00
Randall Li
809c46982a
[M3CButton] Created test for edge insets
...
PiperOrigin-RevId: 494717058
2022-12-12 07:02:04 -08:00
Randall Li
38d70df6e6
[M3CButton] Copying some tests from MDCButtonTests.
...
These are all the tests that pass without (much) modifications. The forState APIs tests ignore the Disabled | Highlighted tests. I attempted to get them to replicate the MDCButton logic but they were not passing. Disabled and Highlighted buttons are not likely to be a thing.
PiperOrigin-RevId: 494711709
2022-12-12 06:34:51 -08:00
Randall Li
2da387c976
[M3CButton] Added imageEdgeInsetsWithImageAndTitle property.
...
This will allow the internal logic to set the imageEdgeInsets when there is image and text as well as zero it out safely when no text or image are present.
Prior to this fix: if no image or text were set when the branding API is called the imageEdgeInset may get overwritten with zeros.
PiperOrigin-RevId: 494337628
2022-12-09 22:26:17 -08:00
Randall Li
fd0092b9e4
[M3CButton] Created first test.
...
This more for scaffolding so that others can quickly add their own unit test rather than a comprehensive suite of tests.
PiperOrigin-RevId: 494331817
2022-12-09 21:27:18 -08:00
Randall Li
2f6dca4011
[M3CButton] Changing clients that set image to pass in templated images.
...
PiperOrigin-RevId: 492501218
2022-12-02 10:26:58 -08:00
Nobody
e4dee869de
internal change
...
PiperOrigin-RevId: 486970737
2022-11-08 09:24:18 -08:00