Design systém gov.cz4.7.1

gov-dialog ​

Properties ​

PropertyAttributeDescriptionTypeDefault
accessibleCloseLabelaccessible-close-labelAdds accessible label for the dialog close button that is only shown for screen readers.string'Zavřít okno'
accessibleCloseLabelledByaccessible-close-labelled-byA string of identifiers that indicate alternative label elements for closing the dialog windowstringundefined
accessibleDescribedByaccessible-described-byIndicates the id of a component that describes the dialog.stringundefined
accessibleLabelledByaccessible-labelled-byString of id's that indicates alternative labels elementsstringundefined
blockBackdropCloseblock-backdrop-closeAttribute allowing blocking the backdrop dialog closingbooleanfalse
blockCloseblock-closeAttribute allowing blocking the dialog closingbooleanfalse
labelTaglabel-tagUsed to change the HTML tag in the dialog label for correct semantic structurestring'h2'
openopenAttribute for dialog window displaybooleanfalse
roleroleRole of dialogstring'dialog'

Events ​

EventDescriptionType
gov-closeEmitted when a dialog window closes.CustomEvent<PointerEvent>

Methods ​

setFocus() => Promise<void> ​

Sets the close button to focus

Returns ​

Type: Promise<void>

validateAccessibility() => Promise<void> ​

Validate the WCAG attributes of the component

Returns ​

Type: Promise<void>

Dependencies ​

Used by ​

Depends on ​

Graph ​


Built with StencilJS