120 Commits

Author SHA1 Message Date
Nobody
9c68b50602 Add a property numberOfLinesInTextView to MDCBannerView that controls the maximum number of lines displayed in the text View. The text view becomes scrollable to display the rest of the content if this limit is exceeded.
PiperOrigin-RevId: 741187500
2025-03-27 09:50:20 -07:00
Nobody
487329ba2b Add support to MDCBannerView to support multiple lines of text within leading and trailing buttons.
PiperOrigin-RevId: 739319320
2025-03-21 15:38:22 -07:00
Nobody
23f7050e7e Removes height anchor that manually fixed Banner buttons heights for long text and larger font sizes.
Removes scrollable text of the text view that is dependent upon Button text size.

PiperOrigin-RevId: 733164049
2025-03-03 20:53:06 -08:00
Nobody
554b1f5b86 Updates the button's width and height dynamically to adjust for long text and larger font sizes.
Update the TextView height to fit large text sizes and larger font sizes.
This CL is for rolling back previous CL(cl/684841697).

PiperOrigin-RevId: 706639834
2024-12-16 03:02:50 -08:00
Cody Weaver
55edb9a9ed Internal change
PiperOrigin-RevId: 684937664
2024-10-11 13:26:56 -07:00
Nobody
37654dc50d Updates the button's width and height dynamically to adjust for long text and larger font sizes.
Update the TextView height to fit large text sizes and larger font sizes

PiperOrigin-RevId: 684841697
2024-10-11 08:11:59 -07:00
Cody Weaver
c4e442c1f2 #MDC Delete failing unit tests due to xcode 15.1
PiperOrigin-RevId: 606695775
2024-02-13 11:43:49 -08:00
Jeff Verkoeyen
df7cdb9789 [Banner] Remove dependency on MDCTypography.
PiperOrigin-RevId: 604498495
2024-02-05 18:48:07 -08:00
Nobody
5762eca605 #ChatNotificationsOptOutAwareness set auto layout so the header view can dynamic update when font size changes.
MDCBannerView change: to fix the banner layout doesn't update correctly
WorldViewController change: to fix the header layout doesn't update correctly
SearchViewController change: to fix the search layout doesn't update correctly

BEGIN_PUBLIC
Support dynamic font update in MDCBannerView.
END_PUBLIC

after: http://recall/-/hyS9i3Sq7I5bIwMVNvSkW3/bp9kvcqcuAA9IU0MB7FEDg
PiperOrigin-RevId: 603253801
2024-01-31 21:24:41 -08:00
Janette James
e8770c13ec Adjust button margins
PiperOrigin-RevId: 574224631
2023-10-17 12:04:01 -07:00
Mila Green
93dc15b72c Updated MDCBanner to support M3CButton.
PiperOrigin-RevId: 495367242
2022-12-14 11:23:21 -08:00
Jeff Verkoeyen
4c6aea2a4e [Buttons+Dialogs] Disable deprecation warnings in headers.
This avoids propagation of warnings to non-Material compilation units which may have deprecation warnings enabled as errors.

PiperOrigin-RevId: 460832988
2022-07-13 16:47:50 -07:00
Jeff Verkoeyen
d61cee6ea7 Enforce minimum OS on more targets.
PiperOrigin-RevId: 410752715
2021-11-18 03:03:55 -08:00
Jeff Verkoeyen
08051b7bda Remove all pre-iOS 12 logic.
PiperOrigin-RevId: 400798440
2021-10-04 13:20:55 -07:00
Jeff Verkoeyen
86a8c97dc7 Remove all pre-iOS 12 logic.
PiperOrigin-RevId: 400788645
2021-10-04 12:41:07 -07:00
Jeff Verkoeyen
c34de39e30 Internal change.
PiperOrigin-RevId: 397316843
2021-09-17 07:45:01 -07:00
Alyssa Weiss
1b69273926 Delete MDCTypography font opacities.
PiperOrigin-RevId: 394494448
2021-09-02 10:44:20 -07:00
Wenyu Zhang
b156c37d0f [Banner] Update the icons used in Banner examples to standardize them.
PiperOrigin-RevId: 389851461
2021-08-10 04:54:08 -07:00
Alyssa Weiss
07075f8e7a Remove adjustsFontForContentSizeCategoryWhenScaledFontIsUnavailable property from MDCButton.
PiperOrigin-RevId: 377352366
2021-06-03 12:53:33 -07:00
Alyssa Weiss
7fa200758d Delete mdc_adjustsFontForContentSizeCategory from MDCBannerView.
PiperOrigin-RevId: 372545111
2021-05-07 06:42:15 -07:00
Jeff Verkoeyen
a8e4831fd0 Flattening all unit tests into single directories as per convention.
PiperOrigin-RevId: 367426300
2021-04-08 07:33:29 -07:00
Alyssa Weiss
924c49e43b Remove all iOS 10 availability checks from material_components_ios now that only iOS 10+ is supported.
PiperOrigin-RevId: 366437050
2021-04-02 06:33:16 -07:00
Jeff Verkoeyen
1abdf16760 Optimizing imports
PiperOrigin-RevId: 357185990
2021-02-12 07:36:41 -08:00
Wenyu Zhang
8bd8b295e2 [Banner] Add contentEdgeInsets support to replace layoutMargins usage in sizeThatFits:.
PiperOrigin-RevId: 348862556
2020-12-23 16:29:52 -08:00
Wenyu Zhang
1faf60e6f5 [Banner] setNeedsLayout before showing Banner in BannerAutolayoutSwiftExampleViewController
PiperOrigin-RevId: 348569490
2020-12-21 20:08:12 -08:00
Andrew Overton
fb4d874f62 [Multiple components] Change component README ToCs to bold paragraph style
PiperOrigin-RevId: 346365613
2020-12-08 11:09:33 -08:00
Andrew Overton
f1d4dd25f0 [ProgressView] Add ProgressIndicators.md for material.io
The Material progress indicator component is broken down into two distinct iOS components, ProgressView and ActivityIndicator. This PR adds a new markdown file, `ProgressIndicators.md`, to be displayed for the progress indicator component on material.io, and leaves both the ProgressView and ActivityIndicator READMEs intact.

Preview the doc here: https://github.com/andrewoverton/material-components-ios/blob/material-io-progress-indicators/components/ProgressView/ProgressIndicators.md

Closes https://github.com/material-components/material-components-ios/pull/10136

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10136 from andrewoverton:material-io-progress-indicators 4daaa8cd80cd9bbf44c7d642324b591def841934
PiperOrigin-RevId: 345734425
2020-12-04 12:36:03 -08:00
Andrew Overton
62ccb5c72f [Multiple components] Audit recent docs changes, part 2
Closes https://github.com/material-components/material-components-ios/pull/10135

PiperOrigin-RevId: 345473101
2020-12-03 09:54:14 -08:00
Cristina De Rito
62863b262e [Banner] Updated documentation
Update theming section.

Closes https://github.com/material-components/material-components-ios/pull/10131

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10131 from artemisia-absynthium:develop 98e59e19056e75eae7f75054283ff2841636c2c3
PiperOrigin-RevId: 345085757
2020-12-01 13:22:16 -08:00
Andrew Overton
0c7a12b0c7 [Multiple components] Miscellaneous doc fixes
PiperOrigin-RevId: 345013092
2020-12-01 07:11:52 -08:00
Andrew Overton
1ec910c31f [Banner] Replace banners docs
Closes https://github.com/material-components/material-components-ios/pull/10104

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10104 from andrewoverton:material-io-banners-docs 2e14efa457550d8b9d5a8cec3aafab99c1a01b79
PiperOrigin-RevId: 339520045
2020-10-28 12:59:48 -07:00
Nobody
56226bbef5 [Banner] Change the trailing padding constraint for textView on MDCBannerView to match the Material Banner specs (https://material.io/components/banners#specs).
PiperOrigin-RevId: 330720199
2020-09-09 07:45:58 -07:00
Wenyu Zhang
22020cdccf [Banner] Remove AppBar example snapshot tests because the animation involved causes flakiness.
PiperOrigin-RevId: 324623184
2020-08-03 09:55:38 -07:00
Wenyu Zhang
0f8c5f7f3c [Banner] Add setUp and tearDown to AppBarBannerExample to avoid flaky testing result.
PiperOrigin-RevId: 324601984
2020-08-03 07:47:05 -07:00
Wenyu Zhang
4216eb6ed5 [Banner] Add height constraints to leadingButton and trailingButton on MDCBannerView to handle the case where they are hidden.
PiperOrigin-RevId: 321804124
2020-07-17 10:27:13 -07:00
Wenyu Zhang
c1bc33cc42 [Banner] Add Banner snapshots for long text with no action style.
PiperOrigin-RevId: 321803409
2020-07-17 10:22:44 -07:00
Ingerid Fosli
1b69ff6f39 Update sizeThatFits calculation to include layout margins in the height calculation and ensure entire leading button can be clicked when trailing button is hidden, by constraining the buttonContainerView to always be at least as tall as the leading button.
Note: With the update in the height calculation, the additional constraint seems to have no effect, and the banner's layout is correct either way. I prefer to keep it, however, as it'll ensure we don't get the same "button cannot be clicked" error in the future, at least not without breaking constraints. Happy to reconsider this, though!
PiperOrigin-RevId: 321214409
2020-07-14 12:48:44 -07:00
Wenyu Zhang
c13125fb26 [Banner] Support two buttons on a single row style banner.
PiperOrigin-RevId: 316110015
2020-06-12 08:40:14 -07:00
Wenyu Zhang
1591b68564 [Banner] Apply primary color to icon in theming.
PiperOrigin-RevId: 314159312
2020-06-01 10:50:45 -07:00
Wenyu Zhang
f2f99a4520 [Banner] Add example snapshot tests for verifying MDCColorSchemeDefaultsMaterial201907 color scheme.
PiperOrigin-RevId: 314125715
2020-06-01 07:24:18 -07:00
Wenyu Zhang
be3c97421b [Banner] Apply container theme in examples.
PiperOrigin-RevId: 313820573
2020-05-29 11:45:45 -07:00
Nobody
70716800b8 Internal change
PiperOrigin-RevId: 312085611
2020-05-18 16:41:12 +00:00
Wenyu Zhang
a3381717f7
Fix the bazel BUILD files and snapshot that were restored unintentionally.(#9983) 2020-04-29 11:00:00 -04:00
Jeff Verkoeyen
a9512e0dba [Banner] Add snapshot test hooks to the examples.
PiperOrigin-RevId: 308163954
2020-04-23 17:32:40 -07:00
Randall Li
0100cfe414 [MDC-iOS/BottomSheet] Fix dismissOnDraggingDownSheet behavior
The bottom sheet incorrectly allowed the sheet to be drag dismissed when `dismissOnDraggingDownSheet` was set to NO.

This change permits the gesture to dismiss to begin but prevents it from actually closing the sheet.

https://github.com/material-components/material-components-ios/issues/9723

Closes https://github.com/material-components/material-components-ios/pull/9885

PiperOrigin-RevId: 307802500
2020-04-22 06:21:26 -07:00
Jeff Verkoeyen
fb7a6f4f26 [Banner] Make the primary demo presentable.
The primary demo was previously not presentable, meaning it was not appearing in the Banner list of examples and one of the other examples was being selected as the "primary" example. This was breaking testing automation because the expectation for each component is that it has a primary demo and that it is presentable.

PiperOrigin-RevId: 306297190
2020-04-13 13:28:59 -07:00
Jeff Verkoeyen
8abbb099a9 Delete all bazel support.
We no longer support bazel.

This PR deletes everything related to bazel support from our repo.

Closes https://github.com/material-components/material-components-ios/pull/9968

PiperOrigin-RevId: 306227127
2020-04-13 07:13:47 -07:00
Randall Li
fa62718bc5
add deps on availability for a bunch of components (#9679)
* add Availability build file

* add Button deps on availability

* added elevation

* corrected include statements to use import of the umbrella files

* revert unwanted changes

* spaces

* clangformat

* add availability dep

* added buttom nav deps on availibility

* Add FeatureHighlight build dep for Availability

* Add Availability build dep to FeatureHighlight private

* Add missing =

* fixed tabs spacing

Co-authored-by: Bryan Oltman <bryanoltman@gmail.com>
2020-02-11 13:14:09 -05:00
Nobody
081fd7a6b4 [Material][Availability] Migrates the Banner to MDCAvailability.
PiperOrigin-RevId: 293864905
2020-02-07 16:05:59 -05:00
featherless
162a063bda
[bazel] Remove all unused mdc_objc_library loads. (#9376)
Found by searching for all references to `\bmdc_objc_library` and removing load statements from files that only returned one result.

Clean up as part of https://github.com/material-components/material-components-ios/issues/9363
2020-01-02 14:34:36 -05:00