Repository navigation
fix(ui): drop the alert role from the encryption notice - #1378
Open
TheMeinerLP wants to merge 2 commits into
Open
TheMeinerLP wants to merge 2 commits into
TheMeinerLP wants to merge 2 commits into
Conversation
The notice that secret values are kept in clear stays on the System page until a key is set, so it is not an event. It was announced as an alert on every visit, which interrupted screen reader users as if something had just failed. It is now a warning on the shared alert, which announces it politely.
Look up the notice as MdAlert by component instead of its data-ingot-component.
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.
Description
The System page warns while secret values are stored in clear and no settings key is set. That warning does not change until someone sets the key, but it was announced as an alert on every visit. A screen reader user heard it interrupt the page as if something had just failed.
The notice now uses the shared alert with the warning tone. It stays visible and is read politely, as a status, and it keeps the same text and anchor.
Type of change
fix- bug fixfeat- new featurerefactor- internal change without behaviour changeperf- performance improvementdocs- documentation onlytest- tests onlybuild/ci/chore- tooling, dependencies, pipelinesHow was this tested?
heavy npx vitest run src/components/support/SettingsEncryptionAlert.test.ts: the warning test was changed first to expect the shared alert with the warning tone and no alert role, and it failed before the changenpx eslinton the changed filesnpm run typecheckinreposilite-frontendChecklist
CLAUDE.md(English, imperative, one offeat,fix,docs,refactor,test,build,ci,chore,perf)./gradlew buildpasses locally (frontend-only change, Gradle not run)