Commit 8f6b741
authored
feat: remove excessive description from "Add a secret" dialog (#491)
* feat: remove excessive description from "Add a secret" dialog
note: the description is an accessibility requirement for screen
readers and our tests will fail without it, because radix ui issues
console warnings for it, and we fail our tests on console warnings.
this behavior makes sense, so instead of disabling it, I decided to
keep the description for screen readers (hence the sr-only class).
In order to make the behavior less confusing when refactoring/debugging
this area of the app, I also added a test case that verifies the
screen-reader behavior.
* replicate the same behavior for editing secrets
* refactor
* reduce distance between header and form in "add a secret"1 parent 9956df8 commit 8f6b741
File tree
2 files changed
+26
-5
lines changed- renderer/src
- features/secrets/components
- routes/__tests__
2 files changed
+26
-5
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
60 | 69 | | |
61 | 70 | | |
62 | 71 | | |
| |||
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
81 | 102 | | |
0 commit comments