Skip to content

Commit 4865639

Browse files
afohrmanpaulfthomas
authored andcommitted
[Bottom Sheet] [Docs] Corrected guidance to use modal bottom sheet default style theme attribute for standard bottom sheets and added a callout explaining that there is no default style theme attribute for standard bottom sheets.
PiperOrigin-RevId: 462465244
1 parent c9e855e commit 4865639

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/components/BottomSheet.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ Apply the `BottomSheetBehavior` to a direct child `View` of `CoordinatorLayout`:
277277

278278
<FrameLayout
279279
android:id="@+id/standard_bottom_sheet"
280+
style="@style/Widget.Material3.BottomSheet"
280281
android:layout_width="match_parent"
281282
android:layout_height="match_parent"
282-
style="?attr/bottomSheetStyle"
283283
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
284284

285285
<!-- Drag handle for accessibility -->
@@ -431,6 +431,11 @@ Attribute | Related method(s) | Default value
431431

432432
Default style theme attribute:`?attr/bottomSheetStyle`
433433

434+
Note: The `?attr/bottomSheetStyle` default style theme attribute is for modal
435+
bottom sheets only. There is no default style theme attribute for standard
436+
bottom sheets, because `BottomSheetBehavior`s don't have a designated associated
437+
`View`.
438+
434439
### Theme overlays
435440

436441
**Element** | **Theme overlay**

0 commit comments

Comments
 (0)