diff --git a/src/devtools/views/Components/Element.css b/src/devtools/views/Components/Element.css index 7cd5512188..05a446bb19 100644 --- a/src/devtools/views/Components/Element.css +++ b/src/devtools/views/Components/Element.css @@ -33,6 +33,7 @@ /* Invert colors */ --color-component-name: var(--color-component-name-inverted); + --color-text: var(--color-text-selected); --color-component-badge-background: var( --color-component-badge-background-inverted ); diff --git a/src/devtools/views/Components/Guideline.css b/src/devtools/views/Components/Guideline.css index e3adaed726..3e53e6f3ba 100644 --- a/src/devtools/views/Components/Guideline.css +++ b/src/devtools/views/Components/Guideline.css @@ -1,8 +1,16 @@ -.Guideline { +.Active, +.Inactive { position: absolute; left: 0; width: 100%; z-index: 0; pointer-events: none; - background-color: var(--color-guideline); +} + +.Active { + background-color: var(--color-guideline-active); +} + +.Inactive { + background-color: var(--color-guideline-inactive); } diff --git a/src/devtools/views/Components/Guideline.js b/src/devtools/views/Components/Guideline.js index f2a69292eb..f9e9d7407f 100644 --- a/src/devtools/views/Components/Guideline.js +++ b/src/devtools/views/Components/Guideline.js @@ -3,6 +3,7 @@ import React, { useContext, useMemo } from 'react'; import { TreeStateContext } from './TreeContext'; import { SettingsContext } from '../Settings/SettingsContext'; +import TreeFocusedContext from './TreeFocusedContext'; import { StoreContext } from '../context'; import { useSubscription } from '../hooks'; import Store from '../../store'; @@ -17,6 +18,7 @@ type Data = {| export default function Guideline(_: {||}) { const { lineHeight } = useContext(SettingsContext); const store = useContext(StoreContext); + const treeFocused = useContext(TreeFocusedContext); const { selectedElementID } = useContext(TreeStateContext); const subscription = useMemo( @@ -81,7 +83,7 @@ export default function Guideline(_: {||}) { return (