mirror of
https://github.com/bitwarden/browser
synced 2026-01-09 20:13:42 +00:00
* Make <content> element explicitly non-focusable Some browsers (Firefox, upcoming versions of Chrome https://bugs.chromium.org/p/chromium/issues/detail?id=585413) make containers with `overflow: auto` / `overflow: scroll` (and the `-x` / `-y` variants) keyboard-focusable. This leads to a very awkward experience for assistive technology users navigating through the extension window, as for every view, the entire `<content>` container receives focus (and screen readers try to announce all its content in one go) before you reach the actual first control. To counteract this behaviour, this adds an explicit `tabindex="-1"` to these elements. * Change `<content>` to `<main>` More semantically accurate. See https://github.com/bitwarden/browser/pull/2245#issuecomment-1104553312 * Update scss to target `main` instead of `content` * Change the previously existing `<main>` to generic `<div>`, tweak styles accordingly Can't have two separate `<main>` elements, especially not nested ones. The original `<main>` was really just a handy wrapper for the component, but semantically should be neutral
74 lines
2.5 KiB
HTML
74 lines
2.5 KiB
HTML
<header>
|
|
<div class="left">
|
|
<a routerLink="/tabs/settings">
|
|
<span class="header-icon"><i class="bwi bwi-angle-left" aria-hidden="true"></i></span>
|
|
<span>{{ "back" | i18n }}</span>
|
|
</a>
|
|
</div>
|
|
<h1 class="center">
|
|
<span class="title">{{ "premiumMembership" | i18n }}</span>
|
|
</h1>
|
|
<div class="right"></div>
|
|
</header>
|
|
<main tabindex="-1">
|
|
<div class="content">
|
|
<ng-container *ngIf="!isPremium">
|
|
<p class="text-center lead">{{ "premiumNotCurrentMember" | i18n }}</p>
|
|
<p>{{ "premiumSignUpAndGet" | i18n }}</p>
|
|
<ul class="bwi-ul">
|
|
<li>
|
|
<i class="bwi bwi-li bwi-check text-success" aria-hidden="true"></i>
|
|
{{ "ppremiumSignUpStorage" | i18n }}
|
|
</li>
|
|
<li>
|
|
<i class="bwi bwi-li bwi-check text-success" aria-hidden="true"></i>
|
|
{{ "ppremiumSignUpTwoStep" | i18n }}
|
|
</li>
|
|
<li>
|
|
<i class="bwi bwi-li bwi-check text-success" aria-hidden="true"></i>
|
|
{{ "ppremiumSignUpReports" | i18n }}
|
|
</li>
|
|
<li>
|
|
<i class="bwi bwi-li bwi-check text-success" aria-hidden="true"></i>
|
|
{{ "ppremiumSignUpTotp" | i18n }}
|
|
</li>
|
|
<li>
|
|
<i class="bwi bwi-li bwi-check text-success" aria-hidden="true"></i>
|
|
{{ "ppremiumSignUpSupport" | i18n }}
|
|
</li>
|
|
<li>
|
|
<i class="bwi bwi-li bwi-check text-success" aria-hidden="true"></i>
|
|
{{ "ppremiumSignUpFuture" | i18n }}
|
|
</li>
|
|
</ul>
|
|
<p class="text-center lead">{{ priceString }}</p>
|
|
<button type="button" class="btn primary block" appBlurClick (click)="purchase()">
|
|
<b>{{ "premiumPurchase" | i18n }}</b>
|
|
</button>
|
|
<button
|
|
#refreshBtn
|
|
type="button"
|
|
appBlurClick
|
|
(click)="refresh()"
|
|
[disabled]="refreshBtn.loading"
|
|
[appApiAction]="refreshPromise"
|
|
class="btn link block"
|
|
>
|
|
<span [hidden]="refreshBtn.loading">{{ "premiumRefresh" | i18n }}</span>
|
|
<i
|
|
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw"
|
|
[hidden]="!refreshBtn.loading"
|
|
aria-hidden="true"
|
|
></i>
|
|
</button>
|
|
</ng-container>
|
|
<ng-container *ngIf="isPremium">
|
|
<p class="text-center lead">{{ "premiumCurrentMember" | i18n }}</p>
|
|
<p class="text-center">{{ "premiumCurrentMemberThanks" | i18n }}</p>
|
|
<button type="button" class="btn block primary" appBlurClick (click)="manage()">
|
|
<b>{{ "premiumManage" | i18n }}</b>
|
|
</button>
|
|
</ng-container>
|
|
</div>
|
|
</main>
|