feat(Popover): improve a11y (#7624)

This commit is contained in:
neverland
2020-11-24 17:25:27 +08:00
committed by GitHub
parent 1f5f078aec
commit 89ce8345b4
3 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -114,13 +114,14 @@ export default createComponent({
renderAction(action, index) {
const { icon, text, disabled, className } = action;
return (
<div
<button
type="button"
class={[bem('action', { disabled, 'with-icon': icon }), className]}
onClick={() => this.onClickAction(action, index)}
>
{icon && <Icon name={icon} class={bem('action-icon')} />}
<div class={[bem('action-text'), BORDER_BOTTOM]}>{text}</div>
</div>
</button>
);
},