Skip to content

Commit 0e876ea

Browse files
committed
#netpyne-103 fixing disabled button
1 parent 427ff9b commit 0e876ea

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

webapp/components/general/TutorialBubble.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,12 @@ const TutorialBubble = ({
173173
backgroundColor: '#434343',
174174
borderRadius: '4px',
175175
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.2)',
176+
border: `solid 1px ${primaryColor}`,
176177
padding: '16px',
177178
minWidth: '150px',
179+
minHeight: '150px',
178180
maxWidth: '300px',
179-
maxHeight: '300px',
181+
maxHeight: '450px',
180182
fontSize: '16px',
181183
lineHeight: '1.5',
182184
zIndex: 1501, // Just over the menus items (1500)
@@ -247,15 +249,16 @@ const TutorialBubble = ({
247249
>
248250
{hasOtherSteps ? 'Skip' : 'Close'}
249251
</Button>
250-
{(hasOtherSteps && nextIsVisible)
252+
{(hasOtherSteps)
251253
&& (
252254
<Button
253255
onClick={listen}
256+
disabled={!nextIsVisible}
254257
style={{
255258
display: 'block',
256259
margin: '0 auto',
257260
backgroundColor: primaryColor,
258-
color: '#fff',
261+
color: !nextIsVisible ? secondaryTextColor : primaryTextColor,
259262
border: 'none',
260263
padding: '8px 16px',
261264
borderRadius: '4px',

0 commit comments

Comments
 (0)