Skip to content

Commit

Permalink
fix issue with background color in tooltip
Browse files Browse the repository at this point in the history
Signed-off-by: Tanuj22 <[email protected]>
  • Loading branch information
Tanuj22 committed Aug 30, 2020
1 parent 1ad2a09 commit 92beaaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ site:
npm start

build:
gatsby build
gatsby build && gatsby serve
8 changes: 4 additions & 4 deletions src/components/blog-view-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ export const ToolTipWrapper = styled.div`
const BlogViewToolTip = ({ isListView, setListView, setGridView}) =>{
return(
<ToolTipWrapper>
<a data-tip="Grid View" onClick={setGridView} className={`${isListView ? "": "active"}`}>
<a data-tip="Grid View" data-for='grid-view' onClick={setGridView} className={`${isListView ? "": "active"}`}>
<BsFillGrid3X3GapFill size={18}/>
</a>
<ReactTooltip place="top" type="dark" effect="solid" />
<a data-tip="List View" onClick={setListView} className={`${isListView ? "active": ""}`}>
<ReactTooltip id='grid-view' className='grid-view' backgroundColor="black" place="top" effect="solid" />
<a data-tip="List View" data-for='list-view' onClick={setListView} className={`${isListView ? "active": ""}`}>
<AiOutlineUnorderedList size={18}/>
</a>
<ReactTooltip place="top" type="dark" effect="solid" />
<ReactTooltip id='list-view' className='list-view' backgroundColor="black" place="top" type="dark" effect="solid" />
</ToolTipWrapper>
);
};
Expand Down

0 comments on commit 92beaaa

Please sign in to comment.