1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

[PS-1386] Browser/Desktop/Web: Accessibility - Stop username regenerator button from losing focus (#3405)

* Make username regenerator button same as password one

it seems that (originally?) it wanted to be disabled at first and then become active again once the generator's async call was finished...but this seems unnecessary. removing all that extraneous stuff that doesn't seem to be actually doing anything makes this work just as well as the password generator button, and doesn't end up losing/resetting focus.

* Remove the `[disabled]` attribute from regenerate buttons

* Use `aria-disabled` instead of `disabled`, make click event conditional

* Make spinner show for `aria-disabled` controls as well
This commit is contained in:
Patrick H. Lauke
2022-12-23 00:18:18 +00:00
committed by GitHub
parent 288827f13a
commit e1aceca72b
4 changed files with 7 additions and 6 deletions

View File

@@ -175,6 +175,7 @@
}
&:disabled:not(.manual),
&[aria-disabled="true"]:not(.manual),
&.loading {
.bwi-spinner {
display: flex;