Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions components/inputs/sass/checkbox.scss

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 changes: 0 additions & 29 deletions components/inputs/test/input-checkbox.vdiff.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import '../input-checkbox.js';
import { expect, fixture, focusElem, hoverElem, html, oneEvent } from '@brightspace-ui/testing';
import { loadSass, unloadSass } from '../../../test/load-sass.js';
import { checkboxFixtures } from './input-checkbox-fixtures.js';
import { inlineHelpFixtures } from './input-shared-content.js';

describe('d2l-input-checkbox', () => {

before(loadSass);
after(unloadSass);

[false, true].forEach(skeleton => {
[false, true].forEach(disabled => {
const checkedStates = ['checked', 'unchecked'];
Expand Down Expand Up @@ -108,28 +103,4 @@ describe('d2l-input-checkbox', () => {
});

});

describe('sass', () => {
Comment thread
dlockhart marked this conversation as resolved.
[false, true].forEach(disabled => {
[true, false].forEach(checked => {

const name = `${disabled ? 'disabled' : 'default'}-${checked ? 'checked' : 'unchecked'}`;
const checkboxFixture = html`<input type="checkbox" class="d2l-test-input-checkbox" ?checked="${checked}" ?disabled="${disabled}">`;

it(name, async() => {
const elem = await fixture(checkboxFixture);
await expect(elem).to.be.golden();
});
if (!disabled) {
it(`${name}-focus`, async() => {
const elem = await fixture(checkboxFixture);
await focusElem(elem);
await expect(elem).to.be.golden();
});
}

});
});
});

});
4 changes: 0 additions & 4 deletions test/sass.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@use "../components/colors/colors.scss";
@use "../components/inputs/sass/checkbox.scss";
@use "../components/inputs/sass/label.scss";
@use "../components/inputs/sass/radio.scss";
@use "../components/inputs/sass/select.scss";
Expand Down Expand Up @@ -35,9 +34,6 @@
.d2l-test-heading-4 {
@include typography.d2l-heading-4();
}
.d2l-test-input-checkbox {
@include checkbox.d2l-input-checkbox();
}
.d2l-test-input-label {
@include label.d2l-input-label();
}
Expand Down