Skip to content

Commit

Permalink
fix(CSSModules): pass modules to child components (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs139 authored and TheSharpieOne committed Jul 27, 2017
1 parent 72d82a3 commit 12270d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/DropdownToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class DropdownToggle extends React.Component {
} else if (!tag) {
Tag = Button;
props.color = color;
props.cssModule = cssModule;
} else {
Tag = tag;
}
Expand Down
4 changes: 1 addition & 3 deletions src/NavbarToggler.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ const defaultProps = {
type: 'button'
};

const navbarToggleIcon = <span className="navbar-toggler-icon" />;

const NavbarToggler = (props) => {
const {
className,
Expand All @@ -40,7 +38,7 @@ const NavbarToggler = (props) => {

return (
<Tag {...attributes} className={classes}>
{children || navbarToggleIcon}
{children || <span className={mapToCssModules('navbar-toggler-icon', cssModule)} />}
</Tag>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class Tooltip extends React.Component {

return (
<TetherContent
className="tooltip"
className={mapToCssModules('tooltip', this.props.cssModule)}
tether={tetherConfig}
tetherRef={this.props.tetherRef}
isOpen={this.props.isOpen}
Expand Down

0 comments on commit 12270d0

Please sign in to comment.