Tab, Shift-TabEnter, Spacedisabledaria property:aria-labelaria-descriptionaria-expandedaria-pressedpressed state of a toggle button.aria-haspopupdialog). It can be used in combination with aria-expanded to indicate the state of the popup.aria-disabled="true"disabled prop is set, this ARIA attribute is set on the button element.role="status"loading prop is set, the component announces the loading state (start and finish).aria-hidden="true"icon prop is set, the icon is hidden from the screen reader.aria-labelledbyaria-describedbyaria-ownsaria-controlsaria-activedescendantaria property with the aria-label value to provide more context for screen reader users. Phrases like "Add",
"Detail" or "Show" can be unclear when read out of context by a screen reader. In such instances, provide an alternative
text that offers more detailed information, such as "Add item XYZ to shopping cart" or "Details of product XYZ."aria prop, for example aria="{ 'aria-haspopup': 'dialog' }" when opening a
dialog.aria property.aria-* attributes directly on the component host.<p-button aria-haspopup="dialog" aria-label="Open details of product XYZ">
Open details
</p-button><p-button aria="{'aria-haspopup': 'dialog', 'aria-label': 'Open details of product XYZ'}">
Open details
</p-button><p-button icon="plus"></p-button><p-button icon="plus" hide-label="true">
Add item XYZ to shopping cart
</p-button><p-button icon="plus">
Add
</p-button><p-button icon="plus" aria="{'aria-label': 'Add item XYZ to shopping cart'}">
Add
</p-button>
<!-- or use descriptive visible text -->
<p-button icon="plus">
Add item XYZ to cart
</p-button>