I have been focusing on enhancing the accessibility of my project by incorporating ESLint rules from vuejs-accessibility and integrating Jest-Axe.
During the accessibility tests for my button components, Jest-Axe highlighted that Buttons must have discernible text. This led me to consider the use of <slot />
to dynamically pass content to my buttons, including rich-text or other text elements.
Could there be a way to ensure that incoming content is accessible to screen readers? One possible solution could be to include a hint like "Press Button" along with the dynamic content.