mirror of
https://github.com/bitwarden/desktop.git
synced 2024-09-20 02:51:43 +02:00
0396d682b1
* Change links to buttons, expose `aria-pressed` for toggles - also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"` * Correctly set aria-pressed now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge * Change more links to buttons, initial style changes * Fix layout of <button> elements with .box-content-row * Update jslib submodule * Add `aria-expanded` to the send view's "Show options" expand/collapse control * Fix position of "Edit" pencil when hovering over folders * Update jslib * Change sends list links to buttons * Add `aria-pressed` to vault and send list buttons Programmatically denote which of the buttons is currently active/shown in the right-most panel * Fix incorrect "Options" expand/collapse button in add-edit view Currently, that buttons lacks an accName because the "Options" text is outside of it. * Add `aria-pressed` to the send left-hand column filters * Simplify base, list, and vault styles Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts. * Remove unnecessary `position:relative` Fixes issue with cut-off focus outlines, has no other adverse effect * Fix styling for last child of action buttons Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
56 lines
2.0 KiB
HTML
56 lines
2.0 KiB
HTML
<div class="modal fade" role="dialog" aria-modal="true">
|
|
<div class="modal-dialog modal-dialog-scrollable" role="document">
|
|
<form class="modal-content" #form (ngSubmit)="submit()">
|
|
<div class="modal-body">
|
|
<div class="box">
|
|
<div class="box-header">{{ "passwordConfirmation" | i18n }}</div>
|
|
<div class="box-content">
|
|
<div class="box-content-row box-content-row-flex" appBoxRow>
|
|
<div class="row-main">
|
|
<label for="masterPassword">{{ "masterPass" | i18n }}</label>
|
|
<input
|
|
id="masterPassword"
|
|
type="{{ showPassword ? 'text' : 'password' }}"
|
|
name="MasterPassword"
|
|
class="monospaced"
|
|
[(ngModel)]="masterPassword"
|
|
required
|
|
appAutofocus
|
|
/>
|
|
</div>
|
|
<div class="action-buttons">
|
|
<button
|
|
type="button"
|
|
class="row-btn"
|
|
appStopClick
|
|
appBlurClick
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
|
[attr.aria-pressed]="showPassword"
|
|
(click)="togglePassword()"
|
|
>
|
|
<i
|
|
class="bwi bwi-lg"
|
|
aria-hidden="true"
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
|
></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="box-footer">
|
|
{{ "passwordConfirmationDesc" | i18n }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit" class="btn btn-primary btn-submit" appBlurClick>
|
|
<span>{{ "ok" | i18n }}</span>
|
|
</button>
|
|
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">
|
|
{{ "cancel" | i18n }}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|