Skip to content

Commit a62ddb9

Browse files
committed
Add error indicator when the devtools are collapsed
1 parent e9f6826 commit a62ddb9

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

dash/dash-renderer/src/components/error/menu/DebugMenu.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,15 @@
164164
.dash-debug-menu__toggle--expanded {
165165
transform: rotate(180deg);
166166
}
167-
167+
.dash-debug-menu__error-indicator {
168+
width: 8px;
169+
height: 8px;
170+
background-color: red;
171+
border-radius: 100%;
172+
position: absolute;
173+
right: 3px;
174+
top: 13px;
175+
}
168176
.dash-debug-menu__status {
169177
display: flex;
170178
align-items: center;

dash/dash-renderer/src/components/error/menu/DebugMenu.react.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ const DebugMenu = ({error, hotReload, config, children}) => {
165165
)}
166166
>
167167
<Expand />
168+
{errCount > 0 && collapsed ? (
169+
<div className='dash-debug-menu__error-indicator' />
170+
) : null}
168171
</button>
169172
</div>
170173
{children}

0 commit comments

Comments
 (0)