[PM-9710] [Bootstrap] Hide file inputs when not using bootstrap (#10095)

When removing boostrap it seems the hidden attribute to the file inputs stops working. This implements a "quick" fix by just adding the tw-hidden class.
This commit is contained in:
Oscar Hinton 2024-07-15 20:09:25 +02:00 committed by GitHub
parent c72fae5c9a
commit bc7c6dd04e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 10 additions and 3 deletions

View File

@ -82,6 +82,7 @@
formControlName="file"
(change)="setSelectedFile($event)"
hidden
class="tw-hidden"
/>
<bit-hint>{{ "licenseFileDesc" | i18n: "bitwarden_premium_license.json" }}</bit-hint>
</bit-form-field>

View File

@ -19,12 +19,13 @@
</div>
<input
#fileSelector
hidden
bitInput
type="file"
formControlName="file"
(change)="setSelectedFile($event)"
accept="application/JSON"
hidden
class="tw-hidden"
/>
<bit-hint>{{ "licenseFileDesc" | i18n: "bitwarden_organization_license.json" }}</bit-hint>
</bit-form-field>

View File

@ -16,6 +16,7 @@
formControlName="file"
(change)="setSelectedFile($event)"
hidden
class="tw-hidden"
/>
<bit-hint>{{ "licenseFileDesc" | i18n: "bitwarden_premium_license.json" }}</bit-hint>
</bit-form-field>

View File

@ -14,6 +14,7 @@
formControlName="file"
(change)="setSelectedFile($event)"
hidden
class="tw-hidden"
/>
<bit-hint>{{
"licenseFileDesc"

View File

@ -76,12 +76,13 @@
<input
bitInput
#fileSelector
hidden
type="file"
id="file"
name="file"
formControlName="file"
(change)="setSelectedFile($event)"
hidden
class="tw-hidden"
/>
<bit-hint>{{ "sendFileDesc" | i18n }} {{ "maxFileSize" | i18n }}</bit-hint>
</bit-form-field>

View File

@ -11,7 +11,6 @@
</div>
<input
#fileSelector
hidden
bitInput
type="file"
id="file"
@ -19,6 +18,8 @@
name="file"
(change)="setSelectedFile($event)"
accept="application/JSON"
hidden
class="tw-hidden"
/>
<bit-hint>{{ "acceptedFormats" | i18n }} Bitwarden (json)</bit-hint>
</bit-form-field>

View File

@ -382,6 +382,7 @@
formControlName="file"
(change)="setSelectedFile($event)"
hidden
class="tw-hidden"
/>
</bit-form-field>
<bit-form-field>