Docs · API reference · Motus.Abstractions
AccessibilityOptions Class#
Configuration for the built-in accessibility audit hook.
public sealed record AccessibilityOptions : System.IEquatable<Motus.Abstractions.AccessibilityOptions>
Inheritance System.Object → AccessibilityOptions
Implements System.IEquatable<AccessibilityOptions>
Properties#
AuditAfterActions Property#
Whether to run an audit after mutating actions (click, fill, selectOption). Default: false.
public bool AuditAfterActions { get; init; }
Property Value#
AuditAfterNavigation Property#
Whether to run an audit after each navigation. Default: true.
public bool AuditAfterNavigation { get; init; }
Property Value#
Enable Property#
Whether the accessibility audit hook is enabled. Default: false.
public bool Enable { get; init; }
Property Value#
IncludeWarnings Property#
Whether warnings count as failures alongside errors. Default: true.
public bool IncludeWarnings { get; init; }
Property Value#
Mode Property#
How violations are handled. Default: Enforce.
public Motus.Abstractions.AccessibilityMode Mode { get; init; }
Property Value#
SkipRules Property#
Rule IDs to exclude from audits (e.g., "a11y-color-contrast").
public System.Collections.Generic.IReadOnlyList<string>? SkipRules { get; init; }