mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
[PM-24581] new styling for premium badge (#17793)
* [PM-24581] new styling for premium badge * stories file * translations for browser and desktop * design review feedback * color fixes, thanks claude
This commit is contained in:
@@ -5934,5 +5934,8 @@
|
|||||||
},
|
},
|
||||||
"sessionTimeoutSettingsSetUnlockMethodToChangeTimeoutAction": {
|
"sessionTimeoutSettingsSetUnlockMethodToChangeTimeoutAction": {
|
||||||
"message": "Set an unlock method to change your timeout action"
|
"message": "Set an unlock method to change your timeout action"
|
||||||
|
},
|
||||||
|
"upgrade": {
|
||||||
|
"message": "Upgrade"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4380,5 +4380,8 @@
|
|||||||
},
|
},
|
||||||
"sessionTimeoutSettingsSetUnlockMethodToChangeTimeoutAction": {
|
"sessionTimeoutSettingsSetUnlockMethodToChangeTimeoutAction": {
|
||||||
"message": "Set an unlock method to change your timeout action"
|
"message": "Set an unlock method to change your timeout action"
|
||||||
|
},
|
||||||
|
"upgrade": {
|
||||||
|
"message": "Upgrade"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,10 +14,11 @@ import { BadgeModule } from "@bitwarden/components";
|
|||||||
type="button"
|
type="button"
|
||||||
*appNotPremium
|
*appNotPremium
|
||||||
bitBadge
|
bitBadge
|
||||||
variant="success"
|
[variant]="'primary'"
|
||||||
|
class="!tw-text-primary-600 !tw-border-primary-600"
|
||||||
(click)="promptForPremium($event)"
|
(click)="promptForPremium($event)"
|
||||||
>
|
>
|
||||||
{{ "premium" | i18n }}
|
<i class="bwi bwi-premium tw-pe-1"></i>{{ "upgrade" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
`,
|
`,
|
||||||
imports: [BadgeModule, JslibModule],
|
imports: [BadgeModule, JslibModule],
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default {
|
|||||||
provide: I18nService,
|
provide: I18nService,
|
||||||
useFactory: () => {
|
useFactory: () => {
|
||||||
return new I18nMockService({
|
return new I18nMockService({
|
||||||
premium: "Premium",
|
upgrade: "Upgrade",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
<bit-form-field *ngIf="cipher.login.totp">
|
<bit-form-field *ngIf="cipher.login.totp">
|
||||||
<bit-label [appTextDrag]="totpCodeCopyObj?.totpCode">
|
<bit-label [appTextDrag]="totpCodeCopyObj?.totpCode">
|
||||||
<div class="tw-flex tw-items-center tw-gap-3">
|
<div class="tw-flex tw-items-center tw-gap-2">
|
||||||
{{ "verificationCodeTotp" | i18n }}
|
{{ "verificationCodeTotp" | i18n }}
|
||||||
<app-premium-badge [organizationId]="cipher.organizationId"></app-premium-badge>
|
<app-premium-badge [organizationId]="cipher.organizationId"></app-premium-badge>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user