Skip to content

Commit 9da9528

Browse files
committed
Add back closing error container button and remove unused vars
1 parent 6d558e1 commit 9da9528

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

dash/dash-renderer/src/components/error/FrontEnd/FrontEndErrorContainer.react.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class FrontEndErrorContainer extends Component {
99
}
1010

1111
render() {
12-
const {errors, connected} = this.props;
12+
const {errors, connected, clickHandler} = this.props;
1313

1414
const inAlertsTray = this.props.inAlertsTray;
1515
let cardClasses = 'dash-error-card dash-error-card--container';
@@ -27,6 +27,12 @@ class FrontEndErrorContainer extends Component {
2727
Errors
2828
{connected ? null : '\u00a0 🚫 Server Unavailable'}
2929
</div>
30+
<div
31+
className='dash-fe-error__icon-x'
32+
onClick={() => clickHandler()}
33+
>
34+
×
35+
</div>
3036
</div>
3137
<div className='dash-error-card__list'>{errorElements}</div>
3238
</div>

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
.dash-debug-menu__version-opt-out {
3232
display: flex;
3333
width: 426px;
34-
padding: var(--Spacing-16, 16px);
34+
padding: 16px;
3535
flex-direction: column;
3636
align-items: flex-start;
3737
gap: 8px;
38-
border-radius: var(--Corner-8, 8px);
39-
border: 1px solid var(--Stroke-Weak, rgba(0, 24, 102, 0.1));
40-
background: var(--Fill-Overlay, #fff);
38+
border-radius: 8px;
39+
border: 1px solid rgba(0, 24, 102, 0.1);
40+
background: #fff;
4141
align-self: flex-end;
4242
position: relative;
4343
/* Shadow/Small */
@@ -117,7 +117,7 @@
117117
box-shadow:
118118
0px 0.8px 0.8px 0px rgba(0, 0, 0, 0.04),
119119
0px 2.3px 2px 0px rgba(0, 0, 0, 0.03);
120-
border: 1px solid var(--Stroke-Weak, rgba(0, 24, 102, 0.1));
120+
border: 1px solid rgba(0, 24, 102, 0.1);
121121
}
122122
.dash-debug-menu__outer--closed {
123123
height: 60px;

0 commit comments

Comments
 (0)