Skip to content

Commit c0e24cd

Browse files
pubiqqimhappi
authored andcommitted
[Documentation][Shape] Update documentation
Resolves #2917 GIT_ORIGIN_REV_ID=b4588de155c5ece6dbe892f558b9868f0ee52da3 PiperOrigin-RevId: 468521881 (cherry picked from commit a52668b)
1 parent 7e18ac4 commit c0e24cd

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

docs/theming/Shape.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ of your app.
2121

2222
## Design & API documentation
2323

24-
- [Material Design 3 guidelines:
25-
Shape](https://m3.material.io/styles/shape/overview)
24+
- [Material Design 3 guidelines: Shape](https://m3.material.io/styles/shape/overview)
2625

2726
## How it works
2827

@@ -104,18 +103,18 @@ that define aspects of the shape. `ShapeAppearanceModel` uses the
104103

105104
The following attributes can be used in a `shapeAppearance` style:
106105

107-
Attribute Name | Format | Description | Supported Values
108-
------------------------- | --------- | ---------------------------------------------------- | ----------------
109-
`cornerFamily` | enum | corner family to be used for all four corners | rounded, cut
110-
`cornerFamilyTopLeft` | enum | corner family to be used for the top left corner | rounded, cut
111-
`cornerFamilyTopRight` | enum | corner family to be used for the top right corner | rounded, cut
112-
`cornerFamilyBottomRight` | enum | corner family to be used for the bottom right corner | rounded, cut
113-
`cornerFamilyBottomLeft` | enum | corner family to be used for the bottom left corner | rounded, cut
114-
`cornerSize` | dimension | corner size to be used for all four corners | `dp` values
115-
`cornerSizeTopLeft` | dimension | corner size to be used for the top left corner | `dp` values
116-
`cornerSizeTopRight` | dimension | corner size to be used for the top right corner | `dp` values
117-
`cornerSizeBottomRight` | dimension | corner size to be used for the bottom right corner | `dp` values
118-
`cornerSizeBottomLeft` | dimension | corner size to be used for the bottom left corner | `dp` values
106+
Attribute Name | Format | Description | Supported Values
107+
------------------------- |---------------------| ---------------------------------------------------- | ----------------
108+
`cornerFamily` | enum | corner family to be used for all four corners | `rounded`, `cut`
109+
`cornerFamilyTopLeft` | enum | corner family to be used for the top left corner | `rounded`, `cut`
110+
`cornerFamilyTopRight` | enum | corner family to be used for the top right corner | `rounded`, `cut`
111+
`cornerFamilyBottomRight` | enum | corner family to be used for the bottom right corner | `rounded`, `cut`
112+
`cornerFamilyBottomLeft` | enum | corner family to be used for the bottom left corner | `rounded`, `cut`
113+
`cornerSize` | dimension\|fraction | corner size to be used for all four corners | dimension values, percentage
114+
`cornerSizeTopLeft` | dimension\|fraction | corner size to be used for the top left corner | dimension values, percentage
115+
`cornerSizeTopRight` | dimension\|fraction | corner size to be used for the top right corner | dimension values, percentage
116+
`cornerSizeBottomRight` | dimension\|fraction | corner size to be used for the bottom right corner | dimension values, percentage
117+
`cornerSizeBottomLeft` | dimension\|fraction | corner size to be used for the bottom left corner | dimension values, percentage
119118

120119
To build a `shapeAppearance`, you need at least a **`cornerSize`** and
121120
**`cornerFamily`** value specified for each corner.

0 commit comments

Comments
 (0)