igniteui-webcomponents
Version:
Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
26 lines • 733 B
JavaScript
import { css, html, LitElement } from 'lit';
import { registerComponent } from '../common/definitions/register.js';
export default class IgcVisuallyHiddenComponent extends LitElement {
static { this.tagName = 'igc-visually-hidden'; }
static { this.styles = css `
:host(:not(:focus-within)) {
position: absolute;
width: 1px;
height: 1px;
border: 0;
padding: 0;
margin: -1px;
overflow: hidden;
white-space: nowrap;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
}
`; }
static register() {
registerComponent(IgcVisuallyHiddenComponent);
}
render() {
return html `<slot></slot>`;
}
}
//# sourceMappingURL=visually-hidden.js.map