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

Account for presentational role conflict resolution in ARIA feature mappings #264

Merged
merged 16 commits into from
Jun 17, 2020

Conversation

Jym77
Copy link
Contributor

@Jym77 Jym77 commented Jun 15, 2020

On an <img alt="" aria-label="foo" />, Presentational role conflict resolution triggered but returns none again as it is the implicit role with alt="".

This should fix it.
Role aspect can now take optional arguments.

@Jym77 Jym77 added the minor Backwards-compatible change that touches public API label Jun 15, 2020
@Jym77 Jym77 requested a review from kasperisager June 15, 2020 07:40
@Jym77 Jym77 self-assigned this Jun 15, 2020
@kasperisager kasperisager changed the title Update presentational conflict Account for presentational role conflict resolution in ARIA feature mappings Jun 15, 2020
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.

Looks good! Just some minor edits 👍

packages/alfa-aria/src/feature.ts Outdated Show resolved Hide resolved
packages/alfa-aria/src/feature.ts Outdated Show resolved Hide resolved
packages/alfa-aria/src/feature.ts Outdated Show resolved Hide resolved
packages/alfa-aria/src/role.ts Outdated Show resolved Hide resolved
packages/alfa-aria/src/feature.ts Outdated Show resolved Hide resolved
packages/alfa-aria/src/feature.ts Outdated Show resolved Hide resolved
packages/alfa-aria/src/feature.ts Outdated Show resolved Hide resolved
packages/alfa-aria/src/feature.ts Outdated Show resolved Hide resolved
packages/alfa-aria/src/feature.ts Outdated Show resolved Hide resolved
Jym77 and others added 10 commits June 17, 2020 09:51
Co-authored-by: Kasper Isager <[email protected]>
Co-authored-by: Kasper Isager <[email protected]>
Co-authored-by: Kasper Isager <[email protected]>
Co-authored-by: Kasper Isager <[email protected]>
Co-authored-by: Kasper Isager <[email protected]>
Co-authored-by: Kasper Isager <[email protected]>
Co-authored-by: Kasper Isager <[email protected]>
@Jym77 Jym77 dismissed kasperisager’s stale review June 17, 2020 08:19

Changes accepted

@Jym77 Jym77 requested a review from kasperisager June 17, 2020 08:19
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.

💯

@Jym77 Jym77 merged commit 3ff77d1 into master Jun 17, 2020
@Jym77 Jym77 deleted the update-presentational-conflict branch June 17, 2020 09:15
kasperisager added a commit that referenced this pull request Jun 17, 2020
* master:
  Treat kind attribute as enumerated (#269)
  Account for presentational role conflict resolution in ARIA feature mappings (#264)
kasperisager added a commit that referenced this pull request Jun 23, 2020
* master:
  Rewrite the CLI internals (#265)
  Avoid discarding rules when adding to `RuleTree` (#274)
  Move presentational role conflict resolution down to Role.from (#273)
  Support passing additional arguments to `Parser`
  Update README
  Rewrite the @siteimprove/alfa-math package (#268)
  Create security.md
  Treat kind attribute as enumerated (#269)
  Account for presentational role conflict resolution in ARIA feature mappings (#264)
  Update lockfile
  Prevent infinite instantiation of `Interview` type (#266)
  Lazy load syntax definitions (#263)
  Add user agent styles for `<noscript>` element (#260)
  Fix some parse issues in `Media`
  `Preference.initial()` -> `Preference.unset()`
  Add scripting and user preferences as `Device` parameters (#259)
  Give build scripts a once-over
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.

2 participants