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

Use preferences window class info instead of aria-label #2257

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

mquevill
Copy link
Collaborator

@mquevill mquevill commented Dec 1, 2024

Using aria-label had localization issues that did not work in non-English locales. Using the class info is necessary to work across locales. The :has() is necessary since the specified parent class is used for all windows (restore chat PIN, other settings windows, etc.).

The selector is likely still fragile due to the amount of back-end changes that are typically made, so I restored the comment.

Fixes #2167.

@mquevill mquevill added the bug label Dec 1, 2024
@mquevill mquevill merged commit 6f7c3ec into sindresorhus:main Dec 1, 2024
5 checks passed
@mquevill mquevill deleted the UpdatePreferencesSelector branch December 1, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Messages are missing. Sync now." does nothing
1 participant