Skip to content

Commit 6a08a8e

Browse files
authored
Remove lightbox button, semantic compatibility fixes (microsoft#8518)
1 parent 362ca93 commit 6a08a8e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

webapp/src/sidepanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,14 @@ export class Sidepanel extends data.Component<SidepanelProps, SidepanelState> {
128128
const { activeTab, height } = this.state;
129129

130130
const isTabTutorial = tutorialOptions?.tutorial && !pxt.BrowserUtils.useOldTutorialLayout();
131+
const isLockedEditor = pxt.appTarget.appTheme.lockedEditor;
131132
const hasSimulator = !pxt.appTarget.simulator?.headless;
132133
const marginHeight = hasSimulator ? "6.5rem" : "3rem";
133134

134135
return <div id="simulator" className="simulator">
135136
<TabPane id="editorSidebar" activeTabName={activeTab} style={height ? { height: `calc(${height}px + ${marginHeight})` } : undefined}>
136137
{hasSimulator && <TabContent name={SIMULATOR_TAB} icon="game" onSelected={this.showSimulatorTab} ariaLabel={lf("Open the simulator tab")}>
137-
{isTabTutorial && this.tutorialExitButton()}
138+
{isTabTutorial && !isLockedEditor && this.tutorialExitButton()}
138139
<div className="ui items simPanel" ref={this.handleSimPanelRef}>
139140
<div id="boardview" className="ui vertical editorFloat" role="region" aria-label={lf("Simulator")} tabIndex={inHome ? -1 : 0} />
140141
<simtoolbar.SimulatorToolbar parent={parent} collapsed={collapseEditorTools} simSerialActive={simSerialActive} devSerialActive={deviceSerialActive} showSimulatorSidebar={this.showSimulatorTab} />

webapp/src/tutorial.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ export class TutorialCard extends data.Component<TutorialCardProps, TutorialCard
735735
<div className="avatar-container">
736736
{(!showDialog && hasHint) && <sui.Button
737737
className={`ui circular label blue hintbutton hidelightbox ${this.props.pokeUser ? 'shake flash' : ''}`}
738-
icon="lightbulb outline"
738+
icon="lightbulb"
739739
aria-label={tutorialAriaLabel} title={tutorialHintTooltip}
740740
onClick={hintOnClick} onKeyDown={sui.fireClickOnEnter}
741741
/>}
@@ -744,7 +744,6 @@ export class TutorialCard extends data.Component<TutorialCardProps, TutorialCard
744744
</div>
745745
{this.state.showSeeMore && !tutorialStepExpanded && <sui.Button className="fluid compact lightgrey" icon="chevron down" tabIndex={0} text={lf("More...")} onClick={this.toggleExpanded} onKeyDown={sui.fireClickOnEnter} />}
746746
{this.state.showSeeMore && tutorialStepExpanded && <sui.Button className="fluid compact lightgrey" icon="chevron up" tabIndex={0} text={lf("Less...")} onClick={this.toggleExpanded} onKeyDown={sui.fireClickOnEnter} />}
747-
<sui.Button ref="tutorialok" id="tutorialOkButton" className="large green okbutton showlightbox" text={lf("Ok")} onClick={this.closeLightbox} onKeyDown={sui.fireClickOnEnter} />
748747
</div>
749748
{hasNext ? <sui.Button icon={`${isRtl ? 'left' : 'right'} chevron large`} className={`nextbutton right attached ${!hasNext ? 'disabled' : ''} ${tutorialCodeValidated ? 'isValidated' : ''}`} text={lf("Next")} textClass="widedesktop only" ariaLabel={lf("Go to the next step of the tutorial.")}
750749
onClick={nextOnClick} onKeyDown={sui.fireClickOnEnter} /> : undefined}

0 commit comments

Comments
 (0)