16 Commits

Author SHA1 Message Date
Nobody
1ffbee43b2 Fixed up imports and nullability for Dialogs
PiperOrigin-RevId: 485926719
2022-11-03 11:31:45 -07:00
Nobody
9e1c0c0a45 Internal change
PiperOrigin-RevId: 477458164
2022-09-28 08:26:32 -07:00
Jeff Verkoeyen
dc91ec8ace [Dialogs] Migrate off of mdc_adjustsFontForContentSizeCategory.
PiperOrigin-RevId: 407210477
2021-11-02 16:59:14 -07:00
Jeff Verkoeyen
c4073fb36f Remove all pre-iOS 12 logic.
PiperOrigin-RevId: 401325761
2021-10-06 13:33:07 -07:00
Alyssa Weiss
6ccb268a37 Move FontScaler APIs in MDCTypography to a separate directory.
PiperOrigin-RevId: 390642325
2021-08-13 10:33:45 -07:00
Alyssa Weiss
420449a5c2 Remove adjustsFontForContentSizeCategoryWhenScaledFontIsUnavailable API from MDCAlertController.
PiperOrigin-RevId: 376847751
2021-06-01 09:15:56 -07:00
Alyssa Weiss
2844115021 Update Dialog's adjustFontForContentSizeCategory to set the property on the message and buttons, not just the title.
PiperOrigin-RevId: 371918504
2021-05-04 08:25:23 -07:00
Alyssa Weiss
bd6484925b Delete deprecated buttonFont for MDCAlert and make all appropriate changes following deletion
PiperOrigin-RevId: 333566191
2020-09-24 12:03:36 -07:00
Alyssa Weiss
d40c6d8608 Remove iOS 10+ checks now that the minimum support contract is iOS 10.
PiperOrigin-RevId: 332836975
2020-09-21 06:28:30 -07:00
Andrew Overton
88b5767bdb
[Dialogs] Migrate dialogs to availability (#9743)
Original CL: cl/293702412
2020-02-14 13:43:47 -05:00
Robert Moore
8c445f6138
[Dialogs] Title supports Dynamic Type. (#8691)
Enables MDCAlertController and the title font to support automatic resizing of
fonts generated from a UIFontMetrics or UIFont preferredFont.

Part of #8672
2019-11-01 08:28:22 -04:00
Robert Moore
27b170cf91
[Dialogs] Add tests for Dynamic Type. (#8675)
Adds unit and snapshot tests for Dynamic Type support using both MDCTypography
and MDCFontScaler.

Part of #5418
2019-10-28 15:53:20 -04:00
Robert Moore
70591f73b6
[Dialogs] Remove broken snapshot tests. (#8676)
The tests didn't show anything. Removing them to make way for new tests.

Part of #5418
2019-10-28 14:55:31 -04:00
Robert Moore
5aeba560cd
[Dialogs] Remove uncontrolled snapshot tests. (#8619)
These two "legacy" snapshot tests do not receive input from the test
environment.  They depend on the state of the simulator and can give false
failure/success depending on the simulator's UIContentSizeCategory value.
2019-10-22 09:57:09 -04:00
Robert Moore
66435f1b68
[Color] Create umbrella header. (#8091)
All components should have a top-level umbrella header for their includes.
This allows easier refactoring of classes and files within the component.
Creating an umbrella for Color and using it outside the component.

Part of #8086
2019-07-25 15:41:26 -04:00
Cody Weaver
8c2bcdc9d8
[Dialogs] Add shadow color API (#7911)
This PR adds a shadowColor API to MDCAlertController and presentation controller. Snapshot test have been added for both MDCAlertController and the trackingView that the presentation controller uses since the MDCAlertController.view is a different view than the view that represents the shadow. This new API supports dynamic color.

Closes #7875
2019-07-16 14:29:37 -07:00