feat(GridItem): improve accessbility (#4517)

This commit is contained in:
neverland
2019-09-20 20:23:52 +08:00
committed by GitHub
parent 92f5ac9143
commit 8cd2efe354
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -85,6 +85,8 @@ export default createComponent({
<div class={[bem({ square })]} style={this.style} onClick={this.onClick}>
<div
style={this.contentStyle}
role={clickable ? 'button' : null}
tabindex={clickable ? 0 : null}
class={[
bem('content', {
center,