Skip to content

Commit abe8e4d

Browse files
authored
Merge pull request #46 from navikt/nav-bar-layers
indicate localization state
2 parents b8b7237 + 0f558e9 commit abe8e4d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.foggy {
2+
color: var(--a-gray-500);
3+
background-color: var(--a-grayalpha-50);
4+
}

xp-archive/client/contentTree/contentTreeEntry/NavigationItem.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { ContentTreeEntryData } from '../../../shared/types';
33
import { useAppState } from '../../context/appState/useAppState';
44
import { TreeItem } from '@mui/x-tree-view';
55
import { useContentTree } from 'client/hooks/useContentTree';
6+
import style from './NavigationItem.module.css';
67

78
type Props = {
89
entry: ContentTreeEntryData;
@@ -19,8 +20,11 @@ export const NavigationItem = ({ entry }: Props) => {
1920
</span>
2021
);
2122

23+
const entryLocalized = entry.isLocalized || entry.hasLocalizedDescendants;
24+
2225
return (
2326
<TreeItem
27+
className={entryLocalized ? '' : style.foggy}
2428
itemId={entry.id}
2529
label={label}
2630
onClick={() => {

0 commit comments

Comments
 (0)