Skip to content

Conversation

Jym77
Copy link
Collaborator

@Jym77 Jym77 commented Jan 20, 2021

After CG call on 14/01/2021, we decided to map the "role attribute has valid value" rule to 1.3.1 with an assumption that a role attribute implies some styling to make the element look like it should.
See https://github.com/act-rules/act-rules.github.io/wiki/Minutes-2021-01-14#what-to-do-of-role-attribute-has-valid-value

I'm not super happy with the examples which are poor authoring practices 🤷

Closes issue(s):

Need for Final Call:
This will require a 1 week Final Call (updating mappings and examples)


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 Final Call period. In case of disagreement, the longer period wins.

@Jym77 Jym77 added Rule Update Use this label for an existing rule that is being updated reviewers wanted labels Jan 20, 2021
@Jym77 Jym77 self-assigned this Jan 20, 2021
Copy link
Contributor

@kasperisager kasperisager left a comment

Choose a reason for hiding this comment

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

I'm on board 👍

@Jym77
Copy link
Collaborator Author

Jym77 commented Jan 21, 2021

Final Call ends on January 28th.

@Jym77 Jym77 added Review Call 1 week Call for review for small changes and removed reviewers wanted labels Jan 21, 2021

```html
<img role="lnik" src="/test-assets/shared/w3c-logo.png" alt="W3C logo" onclick="location.href='https://www.w3.org/'" />
<label>Search: <input type="text" role="searchfield" placeholder="Enter 3 or more characters"/></label>
Copy link
Member

Choose a reason for hiding this comment

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

I think this is an example of where that third assumption might be true. Without the role attribute, this would be a perfectly valid form field.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would argue that the correct (and definitely the intended) role is here searchbox, so the third assumption still holds. (and this is indicated by the "Search" label).

color: white;
}
</style>
<span class="button" tabindex="0" role="button link" onclick="location.href='https://act-rules.github.io/'"
Copy link
Member

Choose a reason for hiding this comment

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

I don't much like this example. I don't think button is a particularly appropriate role for this. I think we should show an appropriate use of fallback roles if we want them demonstrated. Maybe use on of the DPUB roles, with link as a fallback?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't know what this example was supposed to show (I've only added the styling), but I definitely like the DPUB idea 😀

@Elli360
Copy link

Elli360 commented Jan 21, 2021

Looks at this resource - https://zellwk.com/blog/style-hover-focus-active-states/

@Jym77 Jym77 requested a review from WilcoFiers January 25, 2021 07:44
@Jym77
Copy link
Collaborator Author

Jym77 commented Jan 29, 2021

Final Call has ended. Merging.

@Jym77 Jym77 merged commit be0745a into develop Jan 29, 2021
@Jym77 Jym77 deleted the role-attribute-valid-1.3.1 branch January 29, 2021 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review Call 1 week Call for review for small changes Rule Update Use this label for an existing rule that is being updated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What to do of "role attribute has valid value"?

6 participants