Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit bd611d8

Browse files
authored
Small Changes For Accessibility (#310)
1 parent adc1f84 commit bd611d8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/view/components/Dropdown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const Dropdown: React.FC<IDropdownProps> = props => {
1616
<select
1717
className="dropdown"
1818
onChange={props.onSelect}
19+
title={props.name}
1920
name={props.name}
2021
>
2122
{renderOptions(props.options)}

src/view/components/toolbar/ToolBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class ToolBar extends React.Component<IProps, IToolbarState, any> {
194194
{this.state.isDescriptionVisible && (
195195
<Callout
196196
className="description-callout"
197-
role="textbox"
197+
role="text"
198198
target=".info-icon"
199199
setInitialFocus={true}
200200
onDismiss={this.onDescriptionDismiss}

src/view/translations/en.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"toolbar-clue-accelerometer-sensor.description": " The 3-axis accelerometer, can tell you which direction is down towards the Earth (by measuring gravity) or how fast the board is accelerating in 3D space.",
7171
"toolbar-clue-accelerometer-sensor.tryItDescription": "Set the acceleration with the sliders.",
7272
"toolbar-clue-led.title": "Neopixel",
73-
"toolbar-clue-led.description": "The CLUE has one full RGB LED (NeoPixel) on the back of the device",
73+
"toolbar-clue-led.description": "The CLUE has one full RGB LED (NeoPixel) on the back of the device.",
7474

7575
"toolbar-clue-led.tryItDescription": "Run your code and see the cool effects on the simulator!",
7676
"toolbar-clue-a-b-push.title": "Buttons",
@@ -93,7 +93,7 @@
9393
"toolbar-clue-gesture-sensor.description": "The gesture sensor can detect directional gestures (left to right, right to left, up to down, down to up), but in theory more complicated gestures like zig-zag, clockwise or counterclockwise circle, near to far, etc. could also be detected with additional code. ",
9494
"toolbar-clue-gesture-sensor.tryItDescription": "Select a gesture and send it by clicking the button.",
9595
"toolbar-clue-proximity-sensor.title": "Proximity",
96-
"toolbar-clue-proximity-sensor.description": "The proximity sensor uses APDS9960 and is able to return how close an object is to the front of the sensor. This is a number from 0 to 255 where the higher the number the closer an object is to the sensor. You won't be able to translate this into an absolute value in units like inches or millimeters, you can only see how it changes relative to other values",
96+
"toolbar-clue-proximity-sensor.description": "The proximity sensor uses APDS9960 and is able to return how close an object is to the front of the sensor. This is a number from 0 to 255 where the higher the number the closer an object is to the sensor. You won't be able to translate this into an absolute value in units like inches or millimeters, you can only see how it changes relative to other values.",
9797

9898
"toolbar-clue-proximity-sensor.tryItDescription": "Set relative proximity to the sensor in values from 0 - 255, where 0 means very close and 255 means very far.",
9999

@@ -103,8 +103,8 @@
103103
"toolbar-clue-speaker.description": "The CLUE has a buzzer/speaker for playing tones and beeps.",
104104
"toolbar-clue-magnet-sensor.title": "Magnetometer",
105105
"toolbar-clue-magnet-sensor.description": "Sense the magnetic fields that surround us with this handy triple-axis magnetometer (compass) module. Magnetometers can sense where the strongest magnetic force is coming from, generally used to detect magnetic north, but can also be used for measuring magnetic fields.",
106-
"toolbar-clue-magnet-sensor.tryItDescription": "You can set the magnetic field value in microTeslas (uT)",
106+
"toolbar-clue-magnet-sensor.tryItDescription": "You can set the magnetic field value in microTeslas (uT).",
107107
"toolbar-clue-gyroscope-sensor.title": "Gyroscope",
108-
"toolbar-clue-gyroscope-sensor.description": "The 3-axis gyroscope that can measure spin and twist users LSM6DS33",
108+
"toolbar-clue-gyroscope-sensor.description": "The 3-axis gyroscope that can measure spin and twist users LSM6DS33.",
109109
"toolbar-clue-gyroscope-sensor.tryItDescription": "Set the angular velocity in degrees/second."
110110
}

0 commit comments

Comments
 (0)