Skip to content

Commit

Permalink
fix: Fixed CommandBar not support custom background
Browse files Browse the repository at this point in the history
Close #29
  • Loading branch information
myxvisual committed Nov 27, 2017
1 parent 5af6b9a commit b51b0e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/src/routes/Components/CommandBar/SimpleExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default class SimpleExample extends React.Component {
return (
<div>
<CommandBar
background="transparent"
content="Now Playing..."
primaryCommands={[
<AppBarButton icon="Shuffle" label="Shuffle" />,
Expand Down
2 changes: 1 addition & 1 deletion src/CommandBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function getStyles(commandBar: CommandBar): {
justifyContent: haveContent ? "space-between" : "flex-start",
fontSize: 14,
color: theme.baseMediumHigh,
background: theme.useFluentDesign ? theme.listLow : background || theme.altHigh,
background: background || (theme.useFluentDesign ? theme.listLow : theme.altHigh),
height: changedHeight,
transition
}),
Expand Down

0 comments on commit b51b0e7

Please sign in to comment.