Skip to content

Commit

Permalink
Fix for broken pin icon of popovers in dark mode (ToolJet#802)
Browse files Browse the repository at this point in the history
* Fix: Pin icon white  stroke showing in dark theme

* Secondary outline color added for pin button.
  • Loading branch information
akhilgkrishnan authored Sep 21, 2021
1 parent 4dc356c commit eb73c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Editor/LeftSidebar/SidebarPinnedButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const SidebarPinnedButton = ({ state, component, updateState }) => {
const tooltipMsg = state ? `Unpin ${component}` : `Pin ${component}`
return (
<SidebarPinnedButton.OverlayContainer tip={tooltipMsg}>
<div className={`btn btn-sm m-1 ${state ? 'btn-light' : 'btn-default'} ${(component === 'Inspector') && "position-absolute end-0" }`} onClick={updateState} >
<div className={`btn btn-sm m-1 ${state ? 'btn-light' : 'btn-outline-secondary'} ${(component === 'Inspector') && "position-absolute end-0" }`} onClick={updateState} >
<img className="svg-icon" src={`/assets/images/icons/editor/left-sidebar/pinned.svg`} width="16" height="16" />
</div>
</SidebarPinnedButton.OverlayContainer>
Expand Down

0 comments on commit eb73c9c

Please sign in to comment.