diff --git a/src/view/__snapshots__/App.spec.tsx.snap b/src/view/__snapshots__/App.spec.tsx.snap index 22047558d..ac3521338 100644 --- a/src/view/__snapshots__/App.spec.tsx.snap +++ b/src/view/__snapshots__/App.spec.tsx.snap @@ -3961,657 +3961,756 @@ exports[`App component should render correctly 1`] = `
- - - +
+
- - - Red LED - - - Created with Sketch. - - + + + Push Button + + + Created with Sketch. + - - + + + + - - - - +
+
- - - Sound Sensor - - - Created with Sketch. - - + + + Red LED + + + Created with Sketch. + - - - - - +
+
- - - Temperature Sensor - - + + + Sound Sensor + + + Created with Sketch. + - - - + + + + + + + + - - - - +
+
- - - Light sensor - - + + + Temperature Sensor + - - - - - - +
+
- - - neon_pixel - - - Created with Sketch. - - + + + Light sensor + - - - - - - - - + + + + + - - - - +
+
- - - Speaker - - - Created with Sketch. - - + + + neon_pixel + + + Created with Sketch. + - + + + + + + + + + + - - - - +
+
+ +
+
- - - - - + + + + + - - - - +
+
- - - IR - - - Created with Sketch. - - + + + IR + + + Created with Sketch. + - + + + - - - - +
+
- - - GPIO - - - Created with Sketch. - - + + + GPIO + + + Created with Sketch. + - + + + - - - + + +
diff --git a/src/view/components/cpx/__snapshots__/Cpx.spec.tsx.snap b/src/view/components/cpx/__snapshots__/Cpx.spec.tsx.snap index 43bd8b49d..2d51b191f 100644 --- a/src/view/components/cpx/__snapshots__/Cpx.spec.tsx.snap +++ b/src/view/components/cpx/__snapshots__/Cpx.spec.tsx.snap @@ -3953,657 +3953,756 @@ Array [
- - - +
+
- - - Red LED - - - Created with Sketch. - - + + + Push Button + + + Created with Sketch. + - - + + + + - - - - +
+
- - - Sound Sensor - - - Created with Sketch. - - + + + Red LED + + + Created with Sketch. + - - - - - +
+
- - - Temperature Sensor - - + + + Sound Sensor + + + Created with Sketch. + - - - + + + + + + + + - - - - +
+
- - - Light sensor - - + + + Temperature Sensor + - - - - - - +
+
- - - neon_pixel - - - Created with Sketch. - - + + + Light sensor + - - - - - - - - + + + + + - - - - +
+
- - - Speaker - - - Created with Sketch. - - + + + neon_pixel + + + Created with Sketch. + - + + + + + + + + + + - - - - +
+
+ +
+
- - - - - + + + + + - - - - +
+
- - - IR - - - Created with Sketch. - - + + + IR + + + Created with Sketch. + - + + + - - - - +
+
- - - GPIO - - - Created with Sketch. - - + + + GPIO + + + Created with Sketch. + - + + + - - - + + +
, diff --git a/src/view/components/toolbar/SensorModalUtils.tsx b/src/view/components/toolbar/SensorModalUtils.tsx index 51c274b8c..052f6bee6 100644 --- a/src/view/components/toolbar/SensorModalUtils.tsx +++ b/src/view/components/toolbar/SensorModalUtils.tsx @@ -53,7 +53,7 @@ export const CPX_TOOLBAR_ICON_ID = { export const MICROBIT_TOOLBAR_ID = { TEMPERATURE: "toolbar-temperature-sensor", LIGHT: "toolbar-light-sensor", - ACCELEROMETER: "toolbar-accelerometer", + ACCELEROMETER: "toolbar-accelerometer-sensor", LEDS: "toolbar-microbit-led", PUSH_BUTTON: "toolbar-microbit-button", }; diff --git a/src/view/components/toolbar/ToolBar.tsx b/src/view/components/toolbar/ToolBar.tsx index 88b064261..d529e57c9 100644 --- a/src/view/components/toolbar/ToolBar.tsx +++ b/src/view/components/toolbar/ToolBar.tsx @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { TooltipHost } from "office-ui-fabric-react"; import * as React from "react"; import { FormattedMessage, @@ -46,22 +47,33 @@ class ToolBar extends React.Component { {buttonList.map( (currrentButton: any, index: number) => { return ( - - + +
- - - Red LED - - - Created with Sketch. - - + + Red LED + + + Created with Sketch. + - - + + + + - - - - +
+
- - - Temperature Sensor - - - - - - - - - - - - +
+
+ +
+
- - - - - + + + + + - - - + + +
diff --git a/src/view/translations/en.json b/src/view/translations/en.json index ecd96d80f..03ba3349c 100644 --- a/src/view/translations/en.json +++ b/src/view/translations/en.json @@ -42,4 +42,4 @@ "toolbar-microbit-button.title": "Buttons", "toolbar-microbit-button.description": "There are two buttons on the front of the micro:bit (labelled A and B). The third button is to trigger both A and B buttons. You can detect when these buttons are pressed, allowing you to trigger code on the device.", "toolbar-microbit-button.tryItDescription": "Click them with your mouse. Pressing “A” “B” on your keyboard will be implemented soon!" -} +} \ No newline at end of file