diff --git a/components/gantt/accessibility/overview.md b/components/gantt/accessibility/overview.md new file mode 100644 index 000000000..6cc4aace9 --- /dev/null +++ b/components/gantt/accessibility/overview.md @@ -0,0 +1,111 @@ +--- +title: Accessibility Overview +page_title: Telerik UI for Blazor Gantt Documentation | Gantt Accessibility Overview +description: "Get started with the Telerik UI for Blazor Gantt and learn about its accessibility support for WAI-ARIA, Section 508, and WCAG 2.2." +tags: telerik,blazor,accessibility,wai-aria,wcag,gantt +slug: gantt-accessibility-overview +position: 0 +--- + +# Accessibility Overview + +The UI for Blazor Gantt component is WCAG 2.2 AA and Section 508 compliant. The component also follows the WAI-ARIA best practices for implementing the keyboard navigation for its component role, and is tested against the popular screen readers. + +# Blazor Gantt Accessibility Example + +WCAG 2.2 introduces the "Dragging Movements" criterion as an important part of the Operable principle. Its primary goal is to guarantee that any feature reliant on drag actions offers an alternative method that can be executed with a single click, enhancing user accessibility. + +The illustrative example below shows the Gantt tree columns reorder action, achievable through the [Column Menu]({%slug gantt-column-menu%}). Telerik UI for Blazor aims to offer a versatile API that allows users to trigger all functions programmatically or externally, meeting diverse accessibility requirements for any applications. + +The following example demonstrates the [accessibility compliance of the Gantt component]({%slug gantt-wai-aria-support%}). The described level of compliance is achievable with the [Ocean Blue A11y Accessibility Swatch]({%slug themes-accessibility-swatch%}). + +>caption Gantt accessibility compliance example + +````CSHTML +@*Evaluate the example with Axe Core or another accessibility tool*@ + + + + + + + + + + + + + + + + + + + + +@code { + private DateTime SelectedDate { get; set; } = new DateTime(2019, 11, 11, 6, 0, 0); + private int LastId { get; set; } = 1; + private List Data { get; set; } + + protected override void OnInitialized() + { + Data = new List(); + var random = new Random(); + + for (int i = 1; i < 6; i++) + { + var newItem = new FlatModel() + { + Id = LastId++, + Title = "Employee " + i.ToString(), + Start = new DateTime(2020, 12, 10 + i), + End = new DateTime(2020, 12, 11 + i), + PercentComplete = Math.Round(random.NextDouble(), 2) + }; + + Data.Add(newItem); + var parentId = newItem.Id; + + for (int j = 0; j < 5; j++) + { + Data.Add(new FlatModel() + { + Id = LastId++, + ParentId = parentId, + Title = " Employee " + i + " : " + j.ToString(), + Start = new DateTime(2020, 12, 20 + j), + End = new DateTime(2020, 12, 21 + i + j), + PercentComplete = Math.Round(random.NextDouble(), 2) + }); + } + } + + base.OnInitialized(); + } + + public class FlatModel + { + public int Id { get; set; } + public int? ParentId { get; set; } + public string Title { get; set; } + public double PercentComplete { get; set; } + public DateTime Start { get; set; } + public DateTime End { get; set; } + } +} +```` + +## See also + * [Live demo: Gantt Accessibility](https://demos.telerik.com/blazor-ui/gantt/keyboard-navigation) + * [Live demo: Gantt Overview](https://demos.telerik.com/blazor-ui/gantt/overview) + * [Live demo: Blazor Accessibility](https://docs.telerik.com/blazor-ui/accessibility/overview) \ No newline at end of file