Skip to content

Commit cf5061b

Browse files
Fix outline around graph style picker (#1971)
1 parent efffa1e commit cf5061b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/browser/modules/Stream/CypherFrame/VisualizationView/PropertiesPanelContent/StyleableNodeLabel.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { StyledLabelChip } from 'neo4j-arc/common'
2424
import { GraphStyleModel } from 'neo4j-arc/graph-visualization'
2525

2626
import { GrassEditor } from './GrassEditor'
27+
import { StyledPopup } from './styled'
2728

2829
export type StyleableNodeLabelProps = {
2930
selectedLabel: {
@@ -48,7 +49,7 @@ export function StyleableNodeLabel({
4849
selectedLabel.label === '*' ? allNodesCount : selectedLabel.count
4950

5051
return (
51-
<Popup
52+
<StyledPopup
5253
on="click"
5354
basic
5455
key={selectedLabel.label}
@@ -68,6 +69,6 @@ export function StyleableNodeLabel({
6869
}
6970
>
7071
<GrassEditor selectedLabel={selectedLabel} />
71-
</Popup>
72+
</StyledPopup>
7273
)
7374
}

src/browser/modules/Stream/CypherFrame/VisualizationView/PropertiesPanelContent/styled.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,17 @@
1717
* You should have received a copy of the GNU General Public License
1818
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
*/
20+
import { Popup, PopupProps } from 'semantic-ui-react'
2021
import styled from 'styled-components'
2122

2223
export const legendRowHeight = 32
2324

25+
export const StyledPopup = styled<React.ComponentType<PopupProps>>(Popup)`
26+
&& {
27+
background: ${props => props.theme.editorBackground};
28+
}
29+
`
30+
2431
export const StyledInlineList = styled.ul`
2532
list-style: none;
2633
word-break: break-word;

0 commit comments

Comments
 (0)