Skip to content

Commit cefa5c8

Browse files
committed
docs(components/button): update ripple_state description for clarity
1 parent 27a4ae2 commit cefa5c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/en/components/button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The `button` component is a button typically used to trigger an action. It can c
2323

2424
- `ripple_state: Arc<RippleState>`
2525

26-
The state for the click ripple animation. You must provide a valid `RippleState` instance to enable the ripple animation. This differs from the `surface` component, whose `ripple_state` parameter can be passed as `None` to disable the ripple.
26+
The state for the click ripple animation. You must provide a valid `RippleState` instance to enable the ripple animation. This differs from the `surface` component.
2727

2828
- `child: impl FnOnce()`
2929

docs/zhHans/components/button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub fn button(
2323

2424
- `ripple_state: Arc<RippleState>`
2525

26-
此参数为点击水波纹动画的状态,必须传入一个有效的`RippleState`实例,以启用水波纹动画效果。这点不同于`surface`组件,其`ripple_state`参数可以传入`None`来禁用水波纹动画
26+
此参数为点击水波纹动画的状态,必须传入一个有效的`RippleState`实例,以启用水波纹动画效果。这点不同于`surface`组件,请注意
2727

2828
- `child: impl FnOnce()`
2929

0 commit comments

Comments
 (0)