Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit 23f7050

Browse files
Nobodymaterial-automation
authored andcommitted
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
1 parent d3f0d79 commit 23f7050

File tree

2 files changed

+86
-51
lines changed

2 files changed

+86
-51
lines changed

components/Banner/src/MDCBannerView.h

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414

1515
#import "MDCMinimumOS.h" // IWYU pragma: keep
1616

17-
#import "MDCElevatable.h" // ComponentImport
18-
#import "MDCElevationOverriding.h" // ComponentImport
19-
#import "MaterialElevation.h" // ComponentImport
20-
2117
#import <UIKit/UIKit.h>
2218
#import "MaterialButtons.h" // ComponentImport
2319
#import "MaterialElevation.h" // ComponentImport
@@ -46,9 +42,8 @@ typedef NS_ENUM(NSInteger, MDCBannerViewLayoutStyle) {
4642
The [Material Guideline](https://material.io/design/components/banners.html) has more details on
4743
component usage.
4844
*/
49-
__attribute__((objc_subclassing_restricted))
50-
@interface MDCBannerView
51-
: UIView<MDCElevatable, MDCElevationOverriding, UIContentSizeCategoryAdjusting>
45+
__attribute__((objc_subclassing_restricted)) @interface MDCBannerView
46+
: UIView<MDCElevatable, MDCElevationOverriding>
5247
#pragma clang diagnostic pop
5348

5449
/**
@@ -153,12 +148,6 @@ __attribute__((objc_subclassing_restricted))
153148
*/
154149
@property(nonatomic, readonly) BOOL isM3CButtonEnabled;
155150

156-
/**
157-
A Boolean that indicates whether the object automatically updates its font when the device’s
158-
content size category changes.
159-
*/
160-
@property(nonatomic, readwrite, assign) BOOL adjustsFontForContentSizeCategory;
161-
162151
/** Initializes the @c MDCBannerView to be compatible with M3. This
163152
* means using @c M3CButton instead of @c MDCButton for @c leadingButton and
164153
* @c trailingButton.

0 commit comments

Comments
 (0)