diff --git a/src/components/NcButton/NcButton.vue b/src/components/NcButton/NcButton.vue index 33b129928a..961544a1a0 100644 --- a/src/components/NcButton/NcButton.vue +++ b/src/components/NcButton/NcButton.vue @@ -261,26 +261,32 @@ export default { ``` ### Pressed state + It is possible to make the button stateful by adding a pressed state, e.g. if you like to create a favorite button. The button will have the required `aria` attribute for accessibility and visual style (`primary` when pressed, and the configured type otherwise). +Do not change `text` or `aria-label` of the pressed/unpressed button. See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed + ```vue