@rhds/elements
Version:
Red Hat Design System Elements
32 lines (31 loc) • 1.19 kB
TypeScript
import { LitElement } from 'lit';
import { SlotController } from '@patternfly/pfe-core/controllers/slot-controller.js';
/**
* Accessible link group for the footer. Auto-wires `aria-labelledby`
* between the heading and `<ul>` for screen readers. Must contain a
* `<ul>`; should include a heading in the `header` slot. Tab moves
* focus through each link. On mobile, collapses into an accordion
* panel.
*
* @summary Accessible link group with heading for footer navigation
*/
export declare class RhFooterLinks extends LitElement {
#private;
static readonly styles: CSSStyleSheet;
/**
* Visually hides the header slot content while preserving it for screen
* readers. The `aria-labelledby` association remains active regardless
* of this setting. USE when the heading should be accessible but not
* visible (e.g. social links group). Defaults to false.
*/
headerHidden: boolean;
protected slots: SlotController;
connectedCallback(): void;
updateAccessibility(): void;
render(): import("lit-html").TemplateResult<1>;
}
declare global {
interface HTMLElementTagNameMap {
'rh-footer-links': RhFooterLinks;
}
}