Skip to content

Commit

Permalink
[Bottom Sheet] [Docs] Corrected guidance to use modal bottom sheet de…
Browse files Browse the repository at this point in the history
…fault 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
  • Loading branch information
afohrman authored and paulfthomas committed Jul 22, 2022
1 parent c9e855e commit 4865639
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/components/BottomSheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ Apply the `BottomSheetBehavior` to a direct child `View` of `CoordinatorLayout`:

<FrameLayout
android:id="@+id/standard_bottom_sheet"
style="@style/Widget.Material3.BottomSheet"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="?attr/bottomSheetStyle"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">

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

Default style theme attribute:`?attr/bottomSheetStyle`

Note: The `?attr/bottomSheetStyle` default style theme attribute is for modal
bottom sheets only. There is no default style theme attribute for standard
bottom sheets, because `BottomSheetBehavior`s don't have a designated associated
`View`.

### Theme overlays

**Element** | **Theme overlay**
Expand Down

0 comments on commit 4865639

Please sign in to comment.