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

Commit

Permalink
Restyle download button and update test, snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
lingyun1010 committed Jun 4, 2019
1 parent 5cb2f76 commit 8e26f94
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion __test__/MarkerGeneHeatmap.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ describe(`MarkerGeneHeatmap`, () => {
const chartOptions = wrapper.find(`e`).props().options

expect(chartOptions.exporting.buttons.contextButton.text).toEqual(
`<i class="icon icon-functional" data-icon="="></i>Download&nbsp;`)
`<i class="icon icon-functional" data-icon="="></i>&nbsp;Download`)

expect(chartOptions.exporting.buttons.contextButton.symbol).toEqual(null)

expect(chartOptions.exporting.buttons.contextButton.menuItems).toEqual(
Expand Down
12 changes: 10 additions & 2 deletions src/MarkerGeneHeatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,18 +231,26 @@ const MarkerGeneHeatmap = (props) => {
theme: {
style: {
fontSize: `15px`
},
states: {
select: {
style: {
fontWeight: `normal`,
color: `black`
}
}
}
}
},
menuItemStyle: {
fontSize: '15px'
fontSize: `15px`
}
},

exporting: {
buttons: {
contextButton: {
text: '<i class="icon icon-functional" data-icon="="></i>Download&nbsp;',
text: `<i class="icon icon-functional" data-icon="="></i>&nbsp;Download`,
symbol: null,
menuItems: [
`printChart`,
Expand Down

0 comments on commit 8e26f94

Please sign in to comment.