Repository navigation
Mark the Assistant toolbar separator as decorative - #19145
Merged
Merged
Conversation
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #19141.
The separator after the Posit Assistant button in the main toolbar was a plain
<img>with noaltattribute, which axe reports asimage-alt(WCAG 1.1.1, Level A).Toolbar.getSeparator(), its only source, now returns aDecorativeImage, which setsalt=""andaria-hidden="true".The other toolbar separators use
ToolbarSeparator, but that class's primary style name makesToolbar's separator manager hide and show it.GlobalToolbarcontrols this separator's visibility itself, so it keeps the plain image style.Checked against a dev server:
<img>withoutalt(the separator after the Assistant button), andimage-altreports one node.<img>withoutalt, andimage-altpasses.PW_A11Y=1initial-statescan:image-altis gone; the existingaria-prohibited-attrandaria-required-attrviolations remain.