Skip to content

Commit a91ecb7

Browse files
authored
Merge pull request #6 from oslabs-beta/mike/darkmodehtml
Mike/darkmodehtml
2 parents b73ed63 + f92a274 commit a91ecb7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/src/components/main/DirectChildHTML.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function DirectChildHTML({ childId, name, type, typeId, style }: ChildElement) {
8585
id={`canv${childId}`}
8686
>
8787
<span>
88-
<strong style={{ color: isThemeLight ? 'black' : 'white' }}>
88+
<strong style={{ color:'black'}}>
8989
{HTMLType.placeHolderShort}
9090
</strong>
9191
<DeleteButton

app/src/components/main/DirectChildHTMLNestable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import validateNewParent from '../../helperFunctions/changePositionValidation';
1212
import componentNest from '../../helperFunctions/componentNestValidation';
1313
import AddRoute from './AddRoute';
1414
import AddLink from './AddLink';
15+
import { useSelector } from 'react-redux';
1516

1617
import { styleContext } from '../../containers/AppContainer';
1718

@@ -26,6 +27,7 @@ function DirectChildHTMLNestable({
2627
}: ChildElement) {
2728
const [state, dispatch] = useContext(StateContext);
2829
const { isThemeLight } = useContext(styleContext);
30+
const isDarkMode = useSelector(state => state.darkMode.isDarkMode);
2931
const ref = useRef(null);
3032
// const [linkDisplayed, setLinkDisplayed] = useState('');
3133

@@ -175,7 +177,7 @@ function DirectChildHTMLNestable({
175177
id={`canv${childId}`}
176178
>
177179
<span>
178-
<strong style={ {color: isThemeLight ? 'black' : 'white'} }>{HTMLType.placeHolderShort}
180+
<strong style={ {color: 'black' } }>{HTMLType.placeHolderShort}
179181
</strong>
180182
<strong style={{ color: "#0099E6" }}>{attributes && attributes.compLink ? ` ${attributes.compLink}` : ''}
181183
</strong>

0 commit comments

Comments
 (0)