Semantic Focus Configuration, Enterprise Settings, and Semantic Announce Action#315
Semantic Focus Configuration, Enterprise Settings, and Semantic Announce Action#315pinkeshmars merged 4 commits intomainfrom
Conversation
|
|
eilzo
left a comment
There was a problem hiding this comment.
Awesome, great work Pinkesh! Couple of tiny nits.
| Moreover, to add a semantic label for every widget in your app that has an action trigger `OnTap` or `onLongPress`, you can enable the **Add Warning for Semantic Widgets**. By doing so, you'll get a warning if any widget has an action but doesn't have a semantic label added yet. | ||
|
|
||
| :::tip | ||
| You can also dynamically set semantic labels using variables or expressions. This allows the label to change based on the app context, so screen readers announce exactly what’s on the screen instead of generic terms like "image" or "button." For example, a product image can read out the product name (e.g., "Red Running Shoes" pulled from Firestore) instead of just saying "image." |
There was a problem hiding this comment.
Hi @eilzo Since we follow American English conventions in our docs, punctuation like periods typically goes inside the quotation marks.
|
|
||
| - **Is Container**: Indicates the widget acts as a grouping for other semantic widgets. | ||
| - **Is Image**: Tells screen readers the widget represents an image. | ||
| - **Is Button**: Declares the widget behaves like a button. |
| - **Is Container**: Indicates the widget acts as a grouping for other semantic widgets. | ||
| - **Is Image**: Tells screen readers the widget represents an image. | ||
| - **Is Button**: Declares the widget behaves like a button. | ||
| - **Is Header**: Identifies a widget as a heading for better navigation. |
There was a problem hiding this comment.
@eilzo we usually keep such things as bullet points because they’re easier to scan and better suited for short, single-purpose definitions. Since all items belong to the same group, using headings would add unnecessary visual clutter.
|
|
||
| :::info[Best Practices] | ||
|
|
||
| - Long announcements can overwhelm the user. Aim for a concise phrase like "Search complete—3 results." |
There was a problem hiding this comment.
micronit: space before+after '3'
|
|
||
| You can control the Focus Configuration using the following properties: | ||
|
|
||
| - **Wrap in Focus Traversal Group**: It places a widget (and all its children) in a dedicated group so focus cycles within that region before moving on. For example, if you have a login form with two fields: Email and Password. When you enable this option in the login form, pressing <kbd>Tab</kbd> will cycle only between them (and not jump to unrelated parts of the screen). |
There was a problem hiding this comment.
Grammar fix:
For example, if you have a login form with two fields: Email and Password, when you enable...
|
@eilzo The review comments are addressed now! Thanks for looking into it. |
Description
Added info for semantic focus configuration, enterprise settings, and semantic action.
Linear ticket and magic word Fixes DEVR-866
Type of change