8 Commits

Author SHA1 Message Date
Jeff Verkoeyen
1920b96b2a [Dialogs] Add example snapshot tests.
PiperOrigin-RevId: 309275412
2020-04-30 12:22:43 -07:00
featherless
a331cb6a1a
[Dialogs] Fix bug in "Dismissing Dialogs" dialogs where the buttons were not themed. (#8967)
The dialog view controllers were not being provided with the container scheme.

Fixes https://github.com/material-components/material-components-ios/issues/8878

| Before | After |
|:--|:--|
| ![Simulator Screen Shot - iPhone Xʀ - 2019-11-15 at 14 41 13](https://user-images.githubusercontent.com/45670/68970747-fe96eb80-07b5-11ea-8c69-8e0df6ffd64e.png) | ![Simulator Screen Shot - iPhone Xʀ - 2019-11-15 at 14 40 46](https://user-images.githubusercontent.com/45670/68970733-f5a61a00-07b5-11ea-81c4-b7fa75a29f84.png) |
2019-11-15 16:44:46 -05:00
featherless
5d8e992963
[Dialogs] Implement the a11y escape gesture on all custom dialogs in the "Dismissing Dialogs" example. (#8965)
Part of https://github.com/material-components/material-components-ios/issues/8878
2019-11-15 16:14:45 -05:00
featherless
7cfb460a01
[Dialogs] Make all "Dismissing Dialogs" cells a11y buttons. (#8956)
Part of https://github.com/material-components/material-components-ios/issues/8878
2019-11-15 15:18:41 -05:00
Galia Kaufman
df2a4a8c1d
[Dialogs] Fix presented corner radius in custom view controllers (#6696)
DialogPresentationController changes the corner radius dynamically during presentation while ensuring that the presented view's corner radius always matches the corner radius of the tracking view which draws the shadow behind the presented view.
2019-03-02 10:03:55 -05:00
Cody Weaver
754eeaff1c [Dialogs] Update examples to use theming extensions (#6497)
## Related links

* Bug: #6438 
* Component: [Dialogs](https://github.com/material-components/material-components-ios/tree/develop/components/Dialogs)

## Introduction

As we move to theming extensions all components that have a theming extension should use that within it's examples. Currently MDCAlertController has a theming extension and should use it in all examples. Additionally all components within the examples that have a theming extension should use it.

## The problem

Within MDCAlertController examples some components are using the old _Themers_.

## The fix

For all components being used in MDCAlertController examples use a theming extension if available.

## Additional notes

This also cleans up some ivar usage and import statements.
2019-01-30 14:31:14 -05:00
Andrew Overton
a006ff6e4f
Add MDCDialogPresentationController+MaterialTheming (#6286)
This PR adds `MDCDialogPresentationController+MaterialTheming`.

Closes #5968.
2019-01-14 13:35:04 -05:00
Galia Kaufman
3f3e5b0efc
[Dialogs] Renaming example view controllers (#5932)
Adding "Example" to names of all example view controllers of Dialogs - in files/class names.
2018-12-06 15:55:51 -05:00