act-rules.github.io icon indicating copy to clipboard operation
act-rules.github.io copied to clipboard

Consider accessible description in the rules that use link context (5effbb, fd3a94)

Open carlosapaduarte opened this issue 2 years ago • 3 comments

Update rules that use link context to consider the title attribute. Although the original resolution in #1766 requested the changes to be made on the "Programmatically Determined Link Context" definition, given that this specifies a set of elements, it does not seem doable. As an alternative, I've added the accessible description to the expectation of "Link in context is descriptive" and to the applicability of "Links with identical accessible names and context serve equivalent purpose"

Closes issue(s):

  • closes #1766

Need for Call for Review: This will require a 2 weeks Call for Review


How to Review And Approve

  • Go to the “Files changed” tab
  • Here you will have the option to leave comments on different lines.
  • Once the review is completed, find the “Review changes” button in the top right, select “Approve” (if you are really confident in the rule) or "Request changes" and click “Submit review”.
  • Make sure to also review the proposed Call for Review period. In case of disagreement, the longer period wins.

carlosapaduarte avatar May 13 '22 17:05 carlosapaduarte

I feel it would be cleaner to remove aria-describedby from "Programmatically determined link context". Since the rules now explicitly mention the accessible description, that already includes aria-describedby references (and actually a few more things such as children of aria-describedby references, if I get the accessible name computation correctly).

So, the PDLC would be some set of elements defined by some DOM tree relationship, and rules about context would look at PDLC + accessible description. (it would also means that aria-describedby="foo bar" and aria-describedby="bar foo" would be considered as different accessible descriptions while they are currently the same PDLC, which sounds bad)

Good suggestion. I'm updating the definition accordingly.

carlosapaduarte avatar Jun 03 '22 18:06 carlosapaduarte

@dan-tripp-siteimprove Thanks for the review and suggestions.

One tip to improve the workflow: you can propose changes when reviewing by activating the icon with a plus and a minus sign. That will copy the line to the comment window, and if you change that line, then a change proposal is displayed. That is easier for the reviewer, that does not need to copy paste content, but also for the author that can approve the proposal to include it the pull request.

carlosapaduarte avatar Feb 08 '23 19:02 carlosapaduarte

One tip to improve the workflow: you can propose changes when reviewing by activating the icon with a plus and a minus sign. That will copy the line to the comment window, and if you change that line, then a change proposal is displayed. That is easier for the reviewer, that does not need to copy paste content, but also for the author that can approve the proposal to include it the pull request.

I figured there must be an easier way. Thank you, I've noted it for next time.

dan-tripp-siteimprove avatar Feb 08 '23 23:02 dan-tripp-siteimprove