Skip to content

Commit

Permalink
Remove unused question (#1497)
Browse files Browse the repository at this point in the history
* Remove unused question

* Extract documentation
  • Loading branch information
Jym77 authored Nov 14, 2023
1 parent 20bcc36 commit 908585a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/strange-hairs-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@siteimprove/alfa-rules": minor
---

**Breaking:** Question `visible-focus-classes`, and question type `string[]` have been removed.
6 changes: 0 additions & 6 deletions docs/review/api/alfa-rules.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ export namespace Question {
// (undocumented)
"node[]": Iterable<Node>;
// (undocumented)
"string[]": Iterable<string>;
// (undocumented)
boolean: boolean;
// (undocumented)
node: Option<Node>;
Expand Down Expand Up @@ -272,10 +270,6 @@ export namespace Question {
readonly type: "boolean";
readonly message: "Do these [role] landmarks have the same or equivalent content?";
};
readonly "visible-focus-classes": {
readonly type: "string[]";
readonly message: "Which classes have a visible focus indicator?";
};
readonly "has-focus-indicator": {
readonly type: "boolean";
readonly message: "Does the element have a visible focus indicator?";
Expand Down
5 changes: 0 additions & 5 deletions packages/alfa-rules/src/common/act/question.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export namespace Question {
"node[]": Iterable<Node>;
"color[]": Iterable<RGB>;
string: string;
"string[]": Iterable<string>;
}

type TypeName<U extends Uri> = Data[U]["type"];
Expand Down Expand Up @@ -188,10 +187,6 @@ export namespace Question {
message: `Do these [role] landmarks have the same or equivalent content?`,
},
// R65
"visible-focus-classes": {
type: "string[]",
message: `Which classes have a visible focus indicator?`,
},
"has-focus-indicator": {
type: "boolean",
message: `Does the element have a visible focus indicator?`,
Expand Down
3 changes: 0 additions & 3 deletions packages/alfa-rules/test/common/oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ export function oracle<I, T extends Hashable, S>(

case "string":
return wrapper(question, answers[question.uri]!);

case "string[]":
return wrapper(question, answers[question.uri]!);
}
};
}

0 comments on commit 908585a

Please sign in to comment.