Skip to content

Support configurations of global check constantsΒ #8

@niksawtschuk

Description

@niksawtschuk

As mentioned in #6, it would be a good idea to be able to override global check constants, like tappable area and contrast ratio.

For example, kGTXMinContrastRatioForAccessibleText is set to 3.0. In Apple's guidelines, it is recommended to maintain a minimum contrast ratio of 4.5:1. In the WCAG rules for contrast, a ratio of 4.5:1 must be maintained for all text except for sufficiently large text or logos.

If it was possible to override these constants to fit your need, the library would be more flexible. It also calls into question how large text should be handled, as different ratios may be required.

Different WCAG levels also require different ratios, so this may be yet-another level of configuration we could support.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions