12 Commits

Author SHA1 Message Date
Yarden Eitan
40453fe9d2 [ButtonBar] Fix use of wrong enum values (using FloatingBar rather than ButtonBar)
PiperOrigin-RevId: 366253794
2021-04-01 08:18:50 -07:00
Jeff Verkoeyen
169cd386a6 [ButtonBar] Assign the UIBarButtonItem's tintColor to the button's text color.
Prior to this change, UIBarButtonItem's tintColor property would not change the title color of the corresponding button. This differs from the UIKit behavior, which does result in the title color being changed.

After this change, changing a UIBarButtonItem's tintColor will result in the corresponding button's title color being updated as well.

PiperOrigin-RevId: 293848033
2020-02-07 16:03:52 -05:00
Jeff Verkoeyen
aca8bbd5e2 [ButtonBar] Rolling back "Assign the UIBarButtonItem's tintColor to the button's text color."
PiperOrigin-RevId: 293609216
2020-02-06 09:33:45 -08:00
Jeff Verkoeyen
eb528a9349 [ButtonBar] Assign the UIBarButtonItem's tintColor to the button's text color.
Prior to this change, UIBarButtonItem's tintColor property would not change the title color of the corresponding button. This differs from the UIKit behavior, which does result in the title color being changed.

After this change, changing a UIBarButtonItem's tintColor will result in the corresponding button's title color being updated as well.

PiperOrigin-RevId: 293583337
2020-02-06 06:56:22 -08:00
Jeff Verkoeyen
e91b5bfb9f [ButtonBar] Use CGSizeZero instead of CGSizeMake(0, 0).
CGSizeZero is more idiomatic when referring to an empty size.

PiperOrigin-RevId: 293222031
2020-02-04 13:57:22 -08:00
Jeff Verkoeyen
45b435c70c [ButtonBar] Add snapshot tests for title color behavior.
These snapshot tests will be used to verify changes in behavior to the title color of buttons.

PiperOrigin-RevId: 293219347
2020-02-04 13:46:20 -08:00
featherless
fb36f304ba [ButtonBar] Delete the Theming extension. (#8696)
This target is deprecated and unused internally.

Part of #8429
2019-11-12 13:19:19 -08:00
Robert Moore
8cebc56185
[*] Suppress deprecation warnings. (#8481)
Suppresses deprecation warnings either for implementations of our own
deprecated APIs or for their use in tests and elsewhere.

Part of #7537
2019-09-23 12:48:42 -04:00
Robert Moore
8dcf1e4a56
[*] Remove RTL snapshot method overrides. (#7996)
With #7986, most snapshot tests began overriding a method that had nearly the
same behavior.
2019-07-22 21:11:17 -07:00
Yarden Eitan
fa7bc44bbf reverting 2019-02-26 11:57:14 -05:00
Robert Moore
ef9e18ea7f
{Testing} Create mechanism for test fakes and test data (#6673)
Sets up MDC iOS to allow each component to export "Test fakes" and test data for use by other components when performing tests.  The initial commit includes "test data" for MDCTypographyScheme that uses non-default values for each UIFont.

Contributors writing tests, particularly those that use shared components like schemes, can do so more quickly by accessing test data and test fakes directly from the component rather than having to write custom objects for each test.

**Bonus**
The new typography data has already confirmed the Dialogs bug #6637, which would have been discovered sooner if we didn't rely on the typographic defaults that already matched component defaults.

## Typical Usage

### Build/dependency management systems

**bazel BUILD files:**
```
deps = [
        "//components/schemes/Typography:TestingSupport",
],
```

**CocoaPods Podspec files:**
```ruby
  component.dependency "MaterialComponentsTestingSupport/schemes/Typography"
```

### Source includes

**Swift**
```swift
import MaterialComponentsTestingSupport.MaterialTypographyScheme_TestingSupport
```

**Objective-C**
```objc
#import <MaterialComponentsTestingSupporrt/MaterialTypographyScheme+TestingSupport.h>
```
2019-02-21 13:50:29 -05:00
Robert Moore
5ee639cc91
[ButtonBar] Add basic snapshot tests. (#6662)
Add simple layout and theming snapshot tests.
2019-02-20 08:26:00 -05:00