Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
-fixed styles for menu in editor (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova authored May 10, 2019
1 parent 237e383 commit 08d2f82
Showing 1 changed file with 8 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,13 @@ class ComponentExample extends React.Component<ComponentExampleProps, ComponentE
}
}

exampleMenuVariables = {
primaryActiveBackgroundColor: 'transparent',
primaryActiveBorderColor: 'white',
primaryActiveColor: 'white',
primaryBorderColor: 'white',
activeColor: 'white',
disabledColor: '#ffffff80',
color: '#ffffff80',
}
exampleMenuVariables = siteVars => ({
backgroundColorActive: 'transparent',
borderColorActive: siteVars.colors.white,
colorActive: siteVars.colors.white,
primaryBorderColor: siteVars.colors.white,
color: siteVars.colors.white,
})

renderAPIsMenu = (): JSX.Element => {
const { componentAPIs, currentCodeAPI } = this.props
Expand All @@ -252,7 +250,6 @@ class ComponentExample extends React.Component<ComponentExampleProps, ComponentE

return (
<Menu
primary
underlined
items={menuItems}
variables={this.exampleMenuVariables}
Expand Down Expand Up @@ -280,7 +277,6 @@ class ComponentExample extends React.Component<ComponentExampleProps, ComponentE

return (
<Menu
primary
underlined
items={menuItems}
variables={this.exampleMenuVariables}
Expand Down Expand Up @@ -365,15 +361,10 @@ class ComponentExample extends React.Component<ComponentExampleProps, ComponentE
return (
<Menu
size="small"
primary
underlined
activeIndex={-1}
styles={codeEditorStyle}
variables={{
activeColor: 'white',
disabledColor: '#ffffff60',
color: '#ffffffb0',
}}
variables={this.exampleMenuVariables}
items={menuItems}
/>
)
Expand Down

0 comments on commit 08d2f82

Please sign in to comment.