feat(ActionSheet): improve accessibility (#4525)
This commit is contained in:
@@ -96,22 +96,22 @@ function ActionSheet(
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
<button
|
||||
class={[bem('item', { disabled }), item.className, BORDER_TOP]}
|
||||
style={{ color: item.color }}
|
||||
onClick={onClickOption}
|
||||
>
|
||||
{OptionContent()}
|
||||
</div>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
function CancelText() {
|
||||
if (cancelText) {
|
||||
return (
|
||||
<div class={bem('cancel')} onClick={onCancel}>
|
||||
<button class={bem('cancel')} onClick={onCancel}>
|
||||
{cancelText}
|
||||
</div>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user