fix: 🐛 refactor info-field component (#1525)
* fix: 🐛 refactor info-field component Overall context of how the `<InfoField/>` was changed to the correct order. Corrected css grid to have the order of `label,input-field,helper-text`. Also refactored all component instances affected by the change. * refactor: 💡 refactor styling for icon to be center refactor will get the icon as close to center as possible.
This commit is contained in:
1 parent
2192794089
commit
fb89cbb4cf
8 files changed
+29
-32
No files matched your search
@@ -70,14 +70,13 @@
|
||||
</Hds::Form::RadioCard::Group>
|
||||
{{else}}
|
||||
<InfoField
|
||||
@value={{t (concat 'resources.credential-store.help.' @model.type)}}
|
||||
@value={{t (concat 'resources.credential-store.types.' @model.type)}}
|
||||
@icon='keychain'
|
||||
as |F|
|
||||
>
|
||||
<F.Label>{{t 'form.type.label'}}</F.Label>
|
||||
<F.HelperText>{{t
|
||||
(concat 'resources.credential-store.types.' @model.type)
|
||||
}}
|
||||
<F.HelperText>
|
||||
{{t (concat 'resources.credential-store.help.' @model.type)}}
|
||||
</F.HelperText>
|
||||
</InfoField>
|
||||
{{/if}}
|
||||
|
||||
@@ -70,14 +70,13 @@
|
||||
</Hds::Form::RadioCard::Group>
|
||||
{{else}}
|
||||
<InfoField
|
||||
@value={{t (concat 'resources.credential-store.help.' @model.type)}}
|
||||
@value={{t (concat 'resources.credential-store.types.' @model.type)}}
|
||||
@icon='vault'
|
||||
as |F|
|
||||
>
|
||||
<F.Label>{{t 'form.type.label'}}</F.Label>
|
||||
<F.HelperText>{{t
|
||||
(concat 'resources.credential-store.types.' @model.type)
|
||||
}}
|
||||
<F.HelperText>
|
||||
{{t (concat 'resources.credential-store.help.' @model.type)}}
|
||||
</F.HelperText>
|
||||
</InfoField>
|
||||
{{/if}}
|
||||
|
||||
@@ -79,11 +79,11 @@
|
||||
</form.fieldset>
|
||||
{{else}}
|
||||
<InfoField
|
||||
@value={{t (concat 'resources.credential.help.' @model.type)}}
|
||||
@value={{t (concat 'resources.credential.types.' @model.type)}}
|
||||
as |F|
|
||||
>
|
||||
<F.Label>{{t 'form.type.label'}}</F.Label>
|
||||
<F.HelperText>{{t (concat 'resources.credential.types.' @model.type)}}
|
||||
<F.HelperText>{{t (concat 'resources.credential.help.' @model.type)}}
|
||||
</F.HelperText>
|
||||
</InfoField>
|
||||
|
||||
|
||||
@@ -63,11 +63,11 @@
|
||||
</Hds::Form::RadioCard::Group>
|
||||
{{else}}
|
||||
<InfoField
|
||||
@value={{t (concat 'resources.credential.help.' @model.type)}}
|
||||
@value={{t (concat 'resources.credential.types.' @model.type)}}
|
||||
as |F|
|
||||
>
|
||||
<F.Label>{{t 'form.type.label'}}</F.Label>
|
||||
<F.HelperText>{{t (concat 'resources.credential.types.' @model.type)}}
|
||||
<F.HelperText>{{t (concat 'resources.credential.help.' @model.type)}}
|
||||
</F.HelperText>
|
||||
</InfoField>
|
||||
{{/if}}
|
||||
|
||||
@@ -63,11 +63,11 @@
|
||||
</Hds::Form::RadioCard::Group>
|
||||
{{else}}
|
||||
<InfoField
|
||||
@value={{t (concat 'resources.credential.help.' @model.type)}}
|
||||
@value={{t (concat 'resources.credential.types.' @model.type)}}
|
||||
as |F|
|
||||
>
|
||||
<F.Label>{{t 'form.type.label'}}</F.Label>
|
||||
<F.HelperText>{{t (concat 'resources.credential.types.' @model.type)}}
|
||||
<F.HelperText>{{t (concat 'resources.credential.help.' @model.type)}}
|
||||
</F.HelperText>
|
||||
</InfoField>
|
||||
{{/if}}
|
||||
|
||||
@@ -64,12 +64,12 @@
|
||||
|
||||
{{else}}
|
||||
<InfoField
|
||||
@value={{t (concat 'resources.target.help.' @model.type)}}
|
||||
@value={{t (concat 'resources.target.types.' @model.type)}}
|
||||
@icon={{this.icon}}
|
||||
as |F|
|
||||
>
|
||||
<F.Label>{{t 'form.type.label'}}</F.Label>
|
||||
<F.HelperText>{{t (concat 'resources.target.types.' @model.type)}}
|
||||
<F.HelperText>{{t (concat 'resources.target.help.' @model.type)}}
|
||||
</F.HelperText>
|
||||
</InfoField>
|
||||
{{/if}}
|
||||
|
||||
Reference in new issue
Block a user