refactor: 💡 update scope form to use HDS input and textarea (#1459)

* 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

* fix: 🐛 use input event and fix set-from-event to handle empty

* fix: 🐛 fix linting and add @type='text' on HDS text input

* fix: 🐛 fix HDS field margin overrides

* chore: 🤖 simplify selector
This commit is contained in:
Randall Morey authored and GitHub committed 2022-11-15 08:53:10 -08:00
1 parent bdc36b1e59
commit b08d3affe4
8 files changed
+39 -30

No files matched your search

+1 -1
View File
@@ -192,6 +192,6 @@ module('Acceptance | scopes', function (hooks) {
await visit(urls.newOrgScope);
await click('[type="submit"]');
assert.dom('.rose-notification-body').hasText('The request was invalid.');
assert.dom('.rose-form-error-message').hasText('Name is required.');
assert.dom('.hds-form-error__message').hasText('Name is required.');
});
});
@@ -130,7 +130,7 @@ module('Acceptance | scopes | update', function (hooks) {
'The request was invalid.'
);
assert.ok(
find('.rose-form-error-message').textContent.trim(),
find('.hds-form-error__message').textContent.trim(),
'Name is required.'
);
});