Skip to content

Commit

Permalink
Fixes to where passed in class names are assigned and coloring of the…
Browse files Browse the repository at this point in the history
… button svg [#151224876]
  • Loading branch information
apps-manager committed Sep 19, 2017
1 parent 2f394bc commit fb1c9fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/css/buttons/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
padding: 0;
.icon {
margin: 5px;
svg {
fill: currentColor;
}
}
}

Expand Down
6 changes: 6 additions & 0 deletions src/css/tooltips/tooltips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
position: relative;
display: inline-block;

a {
svg {
fill: currentColor;
}
}

&.tooltip-light {
.tooltip-content {
background-color: $tooltip-light-bg;
Expand Down
4 changes: 2 additions & 2 deletions src/react/copy-to-clipboard/copy-to-clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class CopyToClipboard extends React.PureComponent {
};

render() {
const {children, text, onClick, getWindow, tooltip = "Copied", ...others} = this.props;
const {children, className, text, onClick, getWindow, tooltip = "Copied", ...others} = this.props;
const obj = {props: this.props, text: null};

const anchorProps = mergeProps(others, {
Expand All @@ -37,7 +37,7 @@ export class CopyToClipboard extends React.PureComponent {
role: 'button'
});

return (<TooltipTrigger {...{tooltip, trigger: "click"}}>
return (<TooltipTrigger {...{className, tooltip, trigger: "click"}}>
<a {...anchorProps}>
<span className="sr-only" ref={ref => obj.text = ref}>{text}</span>
{children}
Expand Down

0 comments on commit fb1c9fd

Please sign in to comment.