salesforce/sa11y

spike: preset-rule configurations based on dynamic criteria

mohanraj-r opened this issue · 2 comments

Would it make sense to have preset-rules by

  • a rough estimate of how easy the fix would be
    • e.g. image-redundant-alt is usually a quick fix while aria-hidden-body is often a bit more involved.
  • based on performance by benchmarking individual rules
    • e.g. a fast/basic preset-rules for use in performance critical scenarios
  • WCAG levels - A, AA etc ?
    • Might not have value for most of our UIs, as we require both for GA features, but could be useful for beta/pilot UIs.

@cordeliadillon @spatelak Have captured discussions about more dynamic preset-rule configs in this issue. Please feel free to comment with any more info/context.

In my opinion, things like what rules are easy to fix or which run fast enough are too subjective to be a ruleset that's supported at this low of a level. I'd rather see the ability to easily plug in custom configs and let the consuming projects build the config themselves to meet their needs.