Skip to content

feat(material/bottom-sheet): add containerClass config option#33248

Open
yousafravian wants to merge 1 commit into
angular:mainfrom
yousafravian:feat/33103-bottom-sheet-container-class
Open

feat(material/bottom-sheet): add containerClass config option#33248
yousafravian wants to merge 1 commit into
angular:mainfrom
yousafravian:feat/33103-bottom-sheet-container-class

Conversation

@yousafravian
Copy link
Copy Markdown
Contributor

Description

The panelClass configuration for the bottom sheet was documented as applying to the bottom sheet container, but in reality it applies to the overlay pane. To allow users to apply classes directly to the container element (mat-bottom-sheet-container) without introducing a breaking change to panelClass, a new containerClass property has been added to MatBottomSheetConfig.

Fixes #33103

The `panelClass` configuration for the bottom sheet was documented as applying to the bottom sheet container, but in reality it applies to the overlay pane. To allow users to apply classes directly to the container element (`mat-bottom-sheet-container`) without introducing a breaking change to `panelClass`, a new `containerClass` property has been added to `MatBottomSheetConfig`.

Fixes angular#33103
@pullapprove pullapprove Bot requested review from adolgachev and ok7sai May 12, 2026 23:20
panelClass?: string | string[];

/** Extra CSS classes to be added to the bottom sheet container. */
containerClass?: string | string[];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't necessary, users can get the same result by setting a panelClass and targeting the container under it. E.g. .my-panel-class mat-bottom-sheet-container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(bottom-sheet): panelClass mentions to be added to the bottom sheet container, which is not happening

2 participants