You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`iconPosition` String (optional) - Can be `left`, `right` or `overlay`. Defaults to `overlay`.
15
16
*`click` Function (optional) - Function to call when the button is clicked.
16
17
18
+
When defining `accessibilityLabel`, ensure you have considered macOS [best practices](https://developer.apple.com/documentation/appkit/nsaccessibilitybutton/1524910-accessibilitylabel?language=objc).
19
+
17
20
### Instance Properties
18
21
19
22
The following properties are available on instances of `TouchBarButton`:
20
23
24
+
#### `touchBarButton.accessibilityLabel`
25
+
26
+
A `String` representing the description of the button to be read by a screen reader. Will only be read by screen readers if no label is set.
27
+
21
28
#### `touchBarButton.label`
22
29
23
30
A `String` representing the button's current text. Changing this value immediately updates the button
*`accessibilityLabel` String (optional) - A short description of the button for use by screenreaders like VoiceOver.
11
12
*`textColor` String (optional) - Hex color of text, i.e `#ABCDEF`.
12
13
14
+
When defining `accessibilityLabel`, ensure you have considered macOS [best practices](https://developer.apple.com/documentation/appkit/nsaccessibilitybutton/1524910-accessibilitylabel?language=objc).
15
+
13
16
### Instance Properties
14
17
15
18
The following properties are available on instances of `TouchBarLabel`:
@@ -19,6 +22,10 @@ The following properties are available on instances of `TouchBarLabel`:
19
22
A `String` representing the label's current text. Changing this value immediately updates the label in
20
23
the touch bar.
21
24
25
+
#### `touchBarLabel.accessibilityLabel`
26
+
27
+
A `String` representing the description of the label to be read by a screen reader.
28
+
22
29
#### `touchBarLabel.textColor`
23
30
24
31
A `String` hex code representing the label's current text color. Changing this value immediately updates the
0 commit comments