Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target size minimum #2167

Draft
wants to merge 72 commits into
base: develop
Choose a base branch
from
Draft

Target size minimum #2167

wants to merge 72 commits into from

Conversation

Jym77
Copy link
Collaborator

@Jym77 Jym77 commented Mar 8, 2024

Add rules for "Target Size (minimum)" and "Target Size (enhanced)" Success Criteria.

These are set up as composite rules in order to share the exceptions that are shareable.

"Target Size (minimum)" is messy due to the spacing condition that has to be failing in all Failed example, thus requiring quite a bit of scaffholding.

Closes issue(s):

Need for Call for Review:
This will require a 2 weeks Call for Review (new rules 🎉)


Pull Request Etiquette

When creating PR:

  • Make sure you're requesting to pull a branch (right side) to the develop branch (left side).
  • Make sure you do not remove the "How to Review and Approve" section in your pull request description

After creating PR:

  • Add yourself (and co-authors) as "Assignees" for PR.
  • Add label to indicate if it's a Rule, Definition or Chore.
  • Link the PR to any issue it solves. This will be done automatically by referencing the issue at the top of this comment in the indicated place.
  • Optionally request feedback from anyone in particular by assigning them as "Reviewers".

When merging a PR:

  • Close any issue that the PR resolves. This will happen automatically upon merging if the PR was correctly linked to the issue, e.g. by referencing the issue at the top of this comment.

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.

WilcoFiers and others added 30 commits September 8, 2022 11:41
* Add new letter-spacing rule and deprecate old one

* Add new word-spacing rule and deprecate old one

* Clean up assumptions

* Clean up

* Clean up

* Add new line-height rule and deprecate old one

* Replace old letter spacing version rather than deprecating it

* Replace old line height version rather than deprecating it

* Replace old word spacing version rather than deprecating it

* Target text nodes

* Improve background note

* Apply suggestion from review

* Clean up

* Target text nodes rather than their parents

* Target text nodes rather than their parents

* Add missing reference

* Update example

* Apply to parent of text nodes, not text nodes

* Apply suggestions from code review

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* Typos

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* Typos

---------

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>
…1994)

* Explicit meaning of 'has'

* Improve expectation and examples

* Typo

* Improve algorithm description

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* Rephrase expectations

* Streamline Applicability

* Typo

* Simplify expectations

---------

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>
* Fix markup issue in Iframe has name rule

* Update _rules/iframe-non-empty-accessible-name-cae760.md
* Stop linking to proposed rules

* Apply suggestions from code review

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

---------

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>
…2125)

* Update programmatically-determined-link-context.md

* Update iframe-not-focusable-has-no-interactive-content-akn7bn.md

* Update programmatically-determined-link-context.md

* Update iframe-not-focusable-has-no-interactive-content-akn7bn.md

* Create modal-dialog

* Rename modal-dialog to modal-dialog.md

* Update iframe-not-focusable-has-no-interactive-content-akn7bn.md

* Update iframe-not-focusable-has-no-interactive-content-akn7bn.md

* Apply suggestions from code review

Co-authored-by: Dan Tripp <113939352+dan-tripp-siteimprove@users.noreply.github.com>

* Update iframe-not-focusable-has-no-interactive-content-akn7bn.md

* Update and rename modal-dialog.md to inert.md

* Update iframe-not-focusable-has-no-interactive-content-akn7bn.md

* Update iframe-not-focusable-has-no-interactive-content-akn7bn.md

* Update spelling-ignore.yml

* Update iframe-not-focusable-has-no-interactive-content-akn7bn.md

* Update inert.md

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>
Co-authored-by: Dan Tripp <113939352+dan-tripp-siteimprove@users.noreply.github.com>

* Update iframe-not-focusable-has-no-interactive-content-akn7bn.md

* Update inert.md

* Apply suggestions from code review

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>

* AGWG Updates (#2067)

* Add (alt="") for clarity on empty alt

* Resolve focus visible feedback

* Tweak contrast rules

* Tweak page title descriptive

* Fix tests

* Apply suggestions from code review

Co-authored-by: Trevor R. Bostic <32486143+tbostic32@users.noreply.github.com>

---------

Co-authored-by: Trevor R. Bostic <32486143+tbostic32@users.noreply.github.com>

* [cae760] Frame has non-empty accessible name (#2034)

* First pass in response to Feb 16 TF meeting

* typo

* Update _rules/iframe-non-empty-accessible-name-cae760.md

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>

* Update _rules/iframe-non-empty-accessible-name-cae760.md

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>

* Update _rules/iframe-non-empty-accessible-name-cae760.md

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>

* Update _rules/iframe-non-empty-accessible-name-cae760.md

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>

* Update _rules/iframe-non-empty-accessible-name-cae760.md

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>

* Move note about frame to background

* Set height for frame

* Test wants alphabetical contributors

* Update _rules/iframe-non-empty-accessible-name-cae760.md

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* Update _rules/iframe-non-empty-accessible-name-cae760.md

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* Update _rules/iframe-non-empty-accessible-name-cae760.md

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* Move note to background

---------

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* Updating glossary definition. (#2069)

* Bump yaml and zx (#2056)

* Bump yaml and zx

Bumps [yaml](https://github.com/eemeli/yaml) to 2.2.2 and updates ancestor dependency [zx](https://github.com/google/zx). These dependencies need to be updated together.


Updates `yaml` from 1.10.2 to 2.2.2
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](eemeli/yaml@v1.10.2...v2.2.2)

Updates `zx` from 5.3.0 to 7.2.1
- [Release notes](https://github.com/google/zx/releases)
- [Commits](google/zx@5.3.0...7.2.1)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: indirect
- dependency-name: zx
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Trigger CLA?

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* new rule: ARIA required ID references exist (#2041)

* new rule: ARIA required ID references exist

* Address review comments

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* Apply suggestions from code review

Co-authored-by: Tom Brunet <thbrunet@us.ibm.com>
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* Update _rules/aria-required-id-references-in6db8.md

* Apply suggestions from code review

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

---------

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>
Co-authored-by: Tom Brunet <thbrunet@us.ibm.com>

* scrollable element: clarify the title (#2083)

* UpdateTableHeaderRule (#2074)

* UpdateTableHeaderRule

* Update table-header-cell-has-assigned-cells-d0f69e.md

* trigger test

* Update _rules/table-header-cell-has-assigned-cells-d0f69e.md

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

---------

Co-authored-by: Wilco Fiers <wilco.fiers@deque.com>
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* Adds apostrophe to mark the possessive form (#2080)

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>

* Focus visible rule: Fix typo (#2082)

* Contrast rules: Tweak background text (#2090)

* Tweak name / description of Scrollable element keyboard (#2092)

* Deprecate HTML page lang and xml:lang attributes have matching values (#2086)

* Deprecate HTML page lang and xml:lang attributes have matching values

* Apply suggestions from code review

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

---------

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* Rephrase Applicability (#2079)

* Rename file (#2078)

* Move secondary requirement texts out of the background (#2060)

* Move secondary requirement texts out of the background

* Apply suggestions from code review

* fix test

* Fix failing test

* Secondary reqs on ARIA rules

* Update all secondary requirements

* Typos

* Fix failing tests

* Update _rules/link-non-empty-accessible-name-c487ae.md

Co-authored-by: Trevor R. Bostic <32486143+tbostic32@users.noreply.github.com>

* Tweaked the language some more

* Update rule design info for secondary requirements

* Fix tests

* Apply suggestions from code review

Co-authored-by: Kathy Eng <kengdoj@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

---------

Co-authored-by: Trevor R. Bostic <32486143+tbostic32@users.noreply.github.com>
Co-authored-by: Kathy Eng <kengdoj@users.noreply.github.com>
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* fix test on secondary requirements (#2102)

* fix test on secondary requirements

* More assertions

* Update _rules/aria-required-id-references-in6db8.md

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

---------

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* Update dependencies (including act-tools) (#2103)

* fix test-assets not getting built right (#2104)

* Update element-lang-valid-de46e4.md (#2100)

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* fix the approve-rule action (#2105)

* Remove outdated accsupport note (#2111)

* "Element with lang attribute has valid language tag" [de46e4]: Updated Failed Examples 4 and 5 to reflect Applicability (#2094)

* Update element-lang-valid-de46e4.md

Updated Failed examples 4 and 5 to reflect applicability

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* Update _rules/element-lang-valid-de46e4.md

Co-authored-by: Dan Tripp <113939352+dan-tripp-siteimprove@users.noreply.github.com>

---------

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>
Co-authored-by: Dan Tripp <113939352+dan-tripp-siteimprove@users.noreply.github.com>
Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* Text spacing rewrite (#1923)

* Add new letter-spacing rule and deprecate old one

* Add new word-spacing rule and deprecate old one

* Clean up assumptions

* Clean up

* Clean up

* Add new line-height rule and deprecate old one

* Replace old letter spacing version rather than deprecating it

* Replace old line height version rather than deprecating it

* Replace old word spacing version rather than deprecating it

* Target text nodes

* Improve background note

* Apply suggestion from review

* Clean up

* Target text nodes rather than their parents

* Target text nodes rather than their parents

* Add missing reference

* Update example

* Apply to parent of text nodes, not text nodes

* Apply suggestions from code review

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* Typos

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* Typos

---------

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* "Meta viewport allows for zoom" (b4f0c3): Explicit meaning of 'has' (#1994)

* Explicit meaning of 'has'

* Improve expectation and examples

* Typo

* Improve algorithm description

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* Rephrase expectations

* Streamline Applicability

* Typo

* Simplify expectations

---------

Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>

* Map Empty-heading rule to ARIA instead of WCAG (#2120)

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

* Deprecate 4.1.1 rules (#2117)

Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: giacomo-petri <106394951+giacomo-petri@users.noreply.github.com>
Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>
Co-authored-by: Dan Tripp <113939352+dan-tripp-siteimprove@users.noreply.github.com>
Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>
Co-authored-by: Trevor R. Bostic <32486143+tbostic32@users.noreply.github.com>
Co-authored-by: Tom Brunet <thbrunet@us.ibm.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: HelenBurge <41951878+HelenBurge@users.noreply.github.com>
Co-authored-by: Wilco Fiers <wilco.fiers@deque.com>
Co-authored-by: Daniel Montalvo <49305434+daniel-montalvo@users.noreply.github.com>
Co-authored-by: Kathy Eng <kengdoj@users.noreply.github.com>
@Jym77 Jym77 marked this pull request as ready for review April 3, 2024 12:13
@Jym77
Copy link
Collaborator Author

Jym77 commented Apr 3, 2024

(prettier changes should be fixed by #2173)

@tbostic32
Copy link
Collaborator

@Jym77 would it be possible to split this PR into several smaller PRs? It would just help us to push some of the rules along without having to wait for us to review all of them.

@tombrunet Pinging you for SA

@Jym77
Copy link
Collaborator Author

Jym77 commented Apr 4, 2024

@Jym77 would it be possible to split this PR into several smaller PRs? It would just help us to push some of the rules along without having to wait for us to review all of them.

@tbostic32 I'm not sure it would make sense to review the atomic rules in isolation, plus there would be confusion around the shared definitions (they would either be duplicated in all PRs, with merge conflict nightmare upcoming, or be missing from some which makes them harder to read).

But I do agree the resulting PR is quite huge 😖

@dd8
Copy link
Collaborator

dd8 commented Apr 10, 2024

Is there anywhere we can view the built HTML for this branch? The diffs are so big they're hard to read, and since it's a new rule the whole thing needs reviewed as a whole.


Hit testing isn't properly defined, and this has been an [issue in the CSS specification](https://github.com/w3c/csswg-drafts/issues/2325) for years. Therefore, different User Agents may perform it differently, resulting in different [clickable areas][clickable area] for the same element. As of February 2024, the ACT rules Community Group is not aware of actual cases resulting in significantly different [clickable areas][clickable area].

## Background
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need some more background here. I'm not sure I understand what this rule is trying to do or really even how the S.C. are being applied.

@daniel-montalvo
Copy link
Collaborator

Is there anywhere we can view the built HTML for this branch? The diffs are so big they're hard to read, and since it's a new rule the whole thing needs reviewed as a whole.

@dd8 -- We are working on setting up a Netlify site for https://act-rules.github.io
We can have each PR built and deployed, which will hopefully improve things.

@Jym77 Jym77 mentioned this pull request Apr 18, 2024
7 tasks
@Jym77 Jym77 marked this pull request as draft April 18, 2024 12:27
@Jym77
Copy link
Collaborator Author

Jym77 commented Apr 18, 2024

@tbostic32 I'm trying the "split" approach, by isolating one of the rules in #2182. That rule makes little sense in isolation, but hopefully will be easier to review and merge nonetheless.

We've also looked at getting PR-publish. It's a very good idea overall, but a bit tricky with our Github pages publish workflow (especially since it has been broken for a couple of years) See #2183 for some investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agenda item Rule Use this label for a new rule that does not exist already
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants