Infrastructure medium complexity Shared Component mobile
1
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Infrastructure layer providing localized, organization-aware semantic label strings for all interactive elements and screen regions. Integrates with the organization labels system to allow dynamic terminology while ensuring every semantic label remains grammatically correct and meaningful for screen reader users.

Feature: Design System & Accessibility (WCAG 2.2 AA)

semantic-labels-infrastructure

Responsibilities

  • Provide localized semantic label strings for all standard interactive widget types (buttons, fields, toggles, navigation)
  • Integrate with organization labels repository to substitute dynamic terminology in semantic strings
  • Generate context-aware labels for list items (e.g., 'Contact: Ola Nordmann, row 3 of 12')
  • Supply screen-region landmark labels (navigation, main, form, dialog) for structured screen reader navigation
  • Validate that no semantic label string is empty or generic (e.g., 'button') at build time via linting extension

Interfaces

SemanticLabels.forButton(String action, {String? context}) → String
SemanticLabels.forTextField(String fieldName, {bool required = false}) → String
SemanticLabels.forListItem(String name, int index, int total) → String
SemanticLabels.forNavTab(String tabName, bool selected) → String
SemanticLabels.forToggle(String label, bool value) → String
SemanticLabels.forImage(String description) → String
SemanticLabels.withOrgLabel(String key, String fallback) → String
SemanticLabels.forDialog(String title) → String
SemanticLabels.forStatusBadge(String status) → String

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (1)

Data entities managed by this component