mirror of
https://github.com/material-components/material-web.git
synced 2024-11-10 11:21:43 +03:00
27f7ea89ce
BREAKING CHANGE: Removed reducedTouchTarget. Instead, set the width and height on the checkbox. PiperOrigin-RevId: 495087302
20 lines
425 B
TypeScript
20 lines
425 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {Harness} from '../testing/harness.js';
|
|
|
|
import {Checkbox} from './lib/checkbox.js';
|
|
|
|
/**
|
|
* Test harness for checkbox.
|
|
*/
|
|
export class CheckboxHarness extends Harness<Checkbox> {
|
|
override async getInteractiveElement() {
|
|
await this.element.updateComplete;
|
|
return this.element.renderRoot.querySelector('input')!;
|
|
}
|
|
}
|