Browse Source

[PM-13675] Adjust browser autofill override instructions conditions and placement in the settings view (#11559)

* adjust browser autofill override instructions conditions and placement in the settings view

* adjust placement of override instructions in the refresh component for Firefox
pull/10478/merge
Jonathan Prusik 1 year ago committed by GitHub
parent
commit
c9de05de95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 17
      apps/browser/src/autofill/popup/settings/autofill-v1.component.html
  2. 31
      apps/browser/src/autofill/popup/settings/autofill.component.html

17
apps/browser/src/autofill/popup/settings/autofill-v1.component.html

@ -41,8 +41,19 @@ @@ -41,8 +41,19 @@
</option>
</select>
</div>
<div class="box-footer" *ngIf="accountSwitcherEnabled && canOverrideBrowserAutofillSetting">
{{ "showInlineMenuOnFormFieldsDescAlt" | i18n }}
<div class="box-footer" *ngIf="accountSwitcherEnabled || !canOverrideBrowserAutofillSetting">
<span *ngIf="accountSwitcherEnabled">{{ "showInlineMenuOnFormFieldsDescAlt" | i18n }}</span>
<span *ngIf="!canOverrideBrowserAutofillSetting">
{{ "turnOffBrowserBuiltInPasswordManagerSettings" | i18n }}
<a
[attr.href]="disablePasswordManagerLink"
(click)="openDisablePasswordManagerLink($event)"
target="_blank"
rel="noreferrer"
>
{{ "turnOffBrowserBuiltInPasswordManagerSettingsLink" | i18n }}
</a>
</span>
</div>
</div>
</div>
@ -86,7 +97,7 @@ @@ -86,7 +97,7 @@
/>
</div>
</div>
<div class="box-footer">
<div class="box-footer" *ngIf="canOverrideBrowserAutofillSetting">
<span *ngIf="accountSwitcherEnabled">{{ "showInlineMenuOnFormFieldsDescAlt" | i18n }}</span>
{{ "turnOffBrowserBuiltInPasswordManagerSettings" | i18n }}
<a

31
apps/browser/src/autofill/popup/settings/autofill.component.html

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
<h2 bitTypography="h6">{{ "autofillSuggestionsSectionTitle" | i18n }}</h2>
</bit-section-header>
<bit-card>
<bit-form-control>
<bit-form-control [disableMargin]="!enableInlineMenu && !canOverrideBrowserAutofillSetting">
<input
bitCheckbox
id="show-inline-menu"
@ -26,6 +26,22 @@ @@ -26,6 +26,22 @@
>
{{ "showInlineMenuOnFormFieldsDescAlt" | i18n }}
</bit-hint>
<bit-hint
*ngIf="!canOverrideBrowserAutofillSetting"
[class]="!enableInlineMenu ? 'tw-text-sm tw-mb-6' : 'tw-text-sm'"
>
{{ "turnOffBrowserBuiltInPasswordManagerSettings" | i18n }}
<a
bitLink
class="tw-no-underline"
rel="noreferrer"
target="_blank"
(click)="openURI($event, disablePasswordManagerURI)"
[attr.href]="disablePasswordManagerURI"
>
{{ "turnOffBrowserBuiltInPasswordManagerSettingsLink" | i18n }}
</a>
</bit-hint>
</bit-form-control>
<bit-form-control
*ngIf="inlineMenuPositioningImprovementsEnabled && enableInlineMenu"
@ -68,19 +84,6 @@ @@ -68,19 +84,6 @@
<bit-label for="show-autofill-suggestions-on-icon">
{{ "showInlineMenuOnIconSelectionLabel" | i18n }}
</bit-label>
<bit-hint class="tw-text-sm" *ngIf="!canOverrideBrowserAutofillSetting">
{{ "turnOffBrowserBuiltInPasswordManagerSettings" | i18n }}
<a
bitLink
class="tw-no-underline"
rel="noreferrer"
target="_blank"
(click)="openURI($event, disablePasswordManagerURI)"
[attr.href]="disablePasswordManagerURI"
>
{{ "turnOffBrowserBuiltInPasswordManagerSettingsLink" | i18n }}
</a>
</bit-hint>
</bit-form-control>
<bit-form-control *ngIf="canOverrideBrowserAutofillSetting">
<input

Loading…
Cancel
Save