Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Swap components-toolbar between container and toolbar
  • Loading branch information
johngodley committed Dec 4, 2018
commit 11eb7fe6db2e5c821668cbdf70bfbb24bc69bbc5
2 changes: 1 addition & 1 deletion packages/components/src/toolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function Toolbar( { controls = [], children, className, isCollapsed, icon, label
}

return (
<ToolbarContainer className={ className }>
<ToolbarContainer className={ classnames( 'components-toolbar', className ) }>
{ flatMap( controlSets, ( controlSet, indexOfSet ) => (
controlSet.map( ( control, indexOfControl ) => (
<ToolbarButton
Expand Down
7 changes: 1 addition & 6 deletions packages/components/src/toolbar/toolbar-container.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/**
* External dependencies
*/
import classnames from 'classnames';

const ToolbarContainer = ( props ) => (
<div className={ classnames( 'components-toolbar', props.className ) }>
<div className={ props.className }>
{ props.children }
</div>
);
Expand Down