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

Merge labels into a single group #142045

Merged
merged 4 commits into from
Feb 3, 2022
Merged

Merge labels into a single group #142045

merged 4 commits into from
Feb 3, 2022

Conversation

rzhao271
Copy link
Contributor

@rzhao271 rzhao271 commented Feb 2, 2022

Fixes #107748
Fixes #141960

This PR merges the Settings editor setting side labels into a single group per setting.
We define the side labels as the HTML elements that sometimes show up to the right of setting titles, such as the sync ignored indicator or the default overridden indicator.

At the same time, the PR also adds aria support for those side labels, so that programs such as VoiceOver on macOS can read out that information.

Screenshot demo

@rzhao271 rzhao271 added this to the February 2022 milestone Feb 2, 2022
@rzhao271 rzhao271 self-assigned this Feb 2, 2022
this.ignoredSettings = getIgnoredSettings(getDefaultIgnoredSettings(), this._configService);
this._onDidChangeIgnoredSettings.fire();
}
this.ignoredSettings = getIgnoredSettings(getDefaultIgnoredSettings(), this._configService);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: we fire the event more often here by taking out the if case, because otherwise, OSS doesn't seem to update this.ignoredSettings when the extension settings finally get loaded.

Copy link
Contributor

@miguelsolorio miguelsolorio left a comment

Choose a reason for hiding this comment

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

LGTM, only have a minor nit for spacing. Also might be worth exploring some alternate ways to layout all of the labels as they seem to be growing and are quite compact

CleanShot 2022-02-02 at 16 00 25@2x

cc @lychung7

@rzhao271 rzhao271 merged commit 870ab1e into main Feb 3, 2022
@rzhao271 rzhao271 deleted the rzhao271/merge-labels branch February 3, 2022 16:40
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting UI labels should be one group Voice over does not read that a setting is ignored to sync
3 participants