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

Implement SIA-R54 #834

Merged
merged 77 commits into from
Jul 7, 2021
Merged

Implement SIA-R54 #834

merged 77 commits into from
Jul 7, 2021

Conversation

elenamongelli
Copy link
Contributor

@elenamongelli elenamongelli commented Jun 14, 2021

Closes #825

Jym77 and others added 30 commits April 20, 2021 16:36
* Add toString() to Nth
* Add equals() and toString() to functional pseudo-classes and elements
* Add failing example
* Skip step 1 when descending
* Add failing example
* Accept font weight difference with container as good for SIA-R62
* Add label and name in Diagnostic for R14
* Add tests for R42
* Add test cases for `background-size`
* Accept percentages and two values for background-size
* Use Tuple to store dimensions in background-size
* Bail out of background colour computation when encountering a background-size
* Create rule.spec.tsx

* sia-r17 added test

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <[email protected]>

Co-authored-by: Jean-Yves Moyen <[email protected]>
* Sia r3 testing added

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <[email protected]>

Co-authored-by: Jean-Yves Moyen <[email protected]>
* Test r5 added

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <[email protected]>

* variable const target changed to html

Co-authored-by: Jean-Yves Moyen <[email protected]>
* Pass tests for R12 implemented, starting with failed

* Update rule.spec.tsx

* Test rule 12 finished

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <[email protected]>

* Text sintax improved

Co-authored-by: Jean-Yves Moyen <[email protected]>
* Bump actions/create-release from 1 to 1.1.4 (#802)

Bumps [actions/create-release](https://github.com/actions/create-release) from 1 to 1.1.4.
- [Release notes](https://github.com/actions/create-release/releases)
- [Commits](actions/create-release@v1...v1.1.4)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* SIA R18: Added test

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jean-Yves Moyen <[email protected]>
* Test for R19 Added

* Added test for rule 19

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <[email protected]>

Co-authored-by: Jean-Yves Moyen <[email protected]>
* Added test to Rule 8

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <[email protected]>

Co-authored-by: Jean-Yves Moyen <[email protected]>
* Set role name in extended diagnostic

* Required attributes added in rule and test

* Extended diagnostic added

* Apply suggestions from code review

Co-authored-by: Jean-Yves Moyen <[email protected]>

* Correctly send required attributes to diagnostic

* Structure diagnostic JSON a bit

Co-authored-by: Jean-Yves Moyen <[email protected]>
* Expanded Diagnostic added for R62, test updated as well
* Reduce computation in expected values
* Clean up and streamline
packages/alfa-rules/src/sia-r54/rule.ts Outdated Show resolved Hide resolved
packages/alfa-rules/src/sia-r54/rule.ts Outdated Show resolved Hide resolved
packages/alfa-rules/test/sia-r54/rule.spec.tsx Outdated Show resolved Hide resolved
packages/alfa-rules/test/sia-r54/rule.spec.tsx Outdated Show resolved Hide resolved
packages/alfa-rules/test/sia-r54/rule.spec.tsx Outdated Show resolved Hide resolved
packages/alfa-rules/test/sia-r54/rule.spec.tsx Outdated Show resolved Hide resolved
packages/alfa-rules/test/sia-r54/rule.spec.tsx Outdated Show resolved Hide resolved
packages/alfa-rules/test/sia-r54/rule.spec.tsx Outdated Show resolved Hide resolved
packages/alfa-rules/test/sia-r54/rule.spec.tsx Outdated Show resolved Hide resolved
packages/alfa-rules/test/sia-r54/rule.spec.tsx Outdated Show resolved Hide resolved
@kasperisager kasperisager changed the title Implement sia r54 Implement SIA-R54 Jun 22, 2021
@Jym77 Jym77 self-requested a review June 24, 2021 14:38
packages/alfa-rules/src/sia-r54/rule.ts Outdated Show resolved Hide resolved
packages/alfa-rules/src/sia-r54/rule.ts Outdated Show resolved Hide resolved
packages/alfa-rules/src/sia-r54/rule.ts Show resolved Hide resolved
@elenamongelli elenamongelli requested a review from Jym77 June 25, 2021 12:08
Jym77
Jym77 previously requested changes Jun 29, 2021
packages/alfa-rules/src/sia-r54/rule.ts Outdated Show resolved Hide resolved
packages/alfa-rules/src/sia-r54/rule.ts Outdated Show resolved Hide resolved
packages/alfa-rules/src/sia-r54/rule.ts Outdated Show resolved Hide resolved
@Jym77
Copy link
Contributor

Jym77 commented Jul 2, 2021

Also, the rule needs to be activated in packages/alfa-rules/src/rules.ts. See #850

@elenamongelli elenamongelli dismissed Jym77’s stale review July 5, 2021 12:37

Changes implemented

@elenamongelli elenamongelli requested a review from Jym77 July 5, 2021 12:37
@elenamongelli elenamongelli enabled auto-merge (squash) July 7, 2021 08:12
@elenamongelli elenamongelli merged commit 01db7c6 into main Jul 7, 2021
@elenamongelli elenamongelli deleted the Implement_SIA_R54 branch July 7, 2021 08:26
kasperisager added a commit that referenced this pull request Jul 7, 2021
* main:
  Add commentary and tests to `@siteimprove/alfa-equatable`
  Add `scratches` directory for experimenting (#855)
  Refactor `Hash` and add additional methods (#853)
  Implement SIA-R54 (#834)
  Bump compile target to ES2020
  Remove unused imports
  Activate R55 and R56 (#850)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Backwards-compatible change that touches public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement SIA-R54
3 participants