Migrate change-password form to HDS input fields. (#1460)
* refactor: 💡 update scope form to use HDS input and textarea * chore: 🤖 tweak "optional" label text color in dark mode * fix: 🐛 add HDS field margins and fix form tests * fix: 🐛 fix acceptance tests and add TextInput event handlers * refactor: 💡 migrate change-password form to HDS inputs * fix: 🐛 use input event and fix set-from-event to handle empty * chore: 🤖 reverse order of isRequired and isOptional * fix: 🐛 use @type as required by HDS * chore: 🤖 fix linting
This commit is contained in:
1 parent
b08d3affe4
commit
aae85c44d2
2 files changed
+26
-36
No files matched your search
@@ -7,8 +7,8 @@
|
||||
>
|
||||
|
||||
<Hds::Form::TextInput::Field
|
||||
@isOptional={{true}}
|
||||
@isRequired={{false}}
|
||||
@isOptional={{true}}
|
||||
@value={{@model.name}}
|
||||
@isInvalid={{@model.errors.name}}
|
||||
@type='text'
|
||||
@@ -29,8 +29,8 @@
|
||||
</Hds::Form::TextInput::Field>
|
||||
|
||||
<Hds::Form::Textarea::Field
|
||||
@isOptional={{true}}
|
||||
@isRequired={{false}}
|
||||
@isOptional={{true}}
|
||||
@value={{@model.description}}
|
||||
@isInvalid={{@model.errors.description}}
|
||||
name='description'
|
||||
|
||||
Reference in new issue
Block a user