[Retire] Rose::Form::Label (#2815)
* remove rose::form::label integration test * update label on fieldset element to ref .hds-form-label * remove file _label.scss * remove import * delete components/rose/form/label/index.hbs * remove styling from app.scss
This commit is contained in:
1 parent
04b51da60f
commit
1c774aa783
6 files changed
-63
No files matched your search
@@ -1,8 +0,0 @@
|
||||
{{!
|
||||
Copyright (c) HashiCorp, Inc.
|
||||
SPDX-License-Identifier: BUSL-1.1
|
||||
}}
|
||||
|
||||
<label class='rose-form-label{{if @error " error"}}' for={{@for}} ...attributes>
|
||||
{{yield}}
|
||||
</label>
|
||||
@@ -1,6 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) HashiCorp, Inc.
|
||||
* SPDX-License-Identifier: BUSL-1.1
|
||||
*/
|
||||
|
||||
export { default } from 'rose/components/rose/form/label';
|
||||
@@ -3,7 +3,6 @@
|
||||
* SPDX-License-Identifier: BUSL-1.1
|
||||
*/
|
||||
|
||||
@use 'label';
|
||||
@use 'errors';
|
||||
@use 'helper-text';
|
||||
@use 'checkbox';
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) HashiCorp, Inc.
|
||||
* SPDX-License-Identifier: BUSL-1.1
|
||||
*/
|
||||
|
||||
@use '../../variables/sizing';
|
||||
@use '../../utilities/type';
|
||||
|
||||
.rose-form-label {
|
||||
@include type.type(s, semibold);
|
||||
|
||||
display: block;
|
||||
margin-bottom: sizing.rems(xxs);
|
||||
|
||||
&.error {
|
||||
color: var(--failure);
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) HashiCorp, Inc.
|
||||
* SPDX-License-Identifier: BUSL-1.1
|
||||
*/
|
||||
|
||||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'ember-qunit';
|
||||
import { render, find } from '@ember/test-helpers';
|
||||
import { hbs } from 'ember-cli-htmlbars';
|
||||
|
||||
module('Integration | Component | rose/form/label', function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it renders', async function (assert) {
|
||||
await render(hbs`
|
||||
<Rose::Form::Label>
|
||||
Form Label
|
||||
<//Rose::Form::Label>
|
||||
`);
|
||||
assert.ok(find('.rose-form-label'));
|
||||
assert.strictEqual(
|
||||
find('.rose-form-label').textContent.trim(),
|
||||
'Form Label',
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -94,10 +94,6 @@
|
||||
|
||||
fieldset {
|
||||
margin-bottom: sizing.rems(m);
|
||||
|
||||
legend {
|
||||
@extend .rose-form-label;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user