diff --git a/src/popover/index.js b/src/popover/index.js index ed1024152..c66c52bab 100644 --- a/src/popover/index.js +++ b/src/popover/index.js @@ -114,13 +114,14 @@ export default createComponent({ renderAction(action, index) { const { icon, text, disabled, className } = action; return ( -
this.onClickAction(action, index)} > {icon && }
{text}
-
+ ); }, diff --git a/src/popover/index.less b/src/popover/index.less index de5ce500c..a717183c0 100644 --- a/src/popover/index.less +++ b/src/popover/index.less @@ -34,6 +34,8 @@ padding: 0 @padding-md; font-size: @popover-action-font-size; line-height: @line-height-md; + background-color: transparent; + border: none; cursor: pointer; &:last-child { diff --git a/src/popover/test/__snapshots__/index.spec.js.snap b/src/popover/test/__snapshots__/index.spec.js.snap index 5cb3f0706..54423dcbc 100644 --- a/src/popover/test/__snapshots__/index.spec.js.snap +++ b/src/popover/test/__snapshots__/index.spec.js.snap @@ -1,9 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`should allow to custom the className of action 1`] = ` -
+
+ `; exports[`should locate to reference element when showed 1`] = ``;