builder icon indicating copy to clipboard operation
builder copied to clipboard

[FEATURE] Change ARIA Properties via the Builder Sidebar

Open harshtandiya opened this issue 10 months ago • 4 comments

ARIA is a standard for web accessibility.

I think a very valuable addition to builder would be to add an Accessibility section somewhere the right side control panel which would enable the developer to define aria labels for components with ease.

Right now, the only way to do it is via "HTML Attributes"

harshtandiya avatar Feb 12 '25 09:02 harshtandiya

Hey, is someone already working on this issue or can I take it? @surajshetty3416

VaideshWaranR avatar Nov 05 '25 18:11 VaideshWaranR

@VaideshWaranR Sure go-ahead... maybe share your implementation plan/feature design before you actually implement it?

surajshetty3416 avatar Nov 10 '25 10:11 surajshetty3416

Hi @surajshetty3416

I was thinking of creating a dedicated section for Accessibility in the builder with the most commonly used accessibility fixes.

This section would include basic fields for now, such as:

  • Label Text → for adding custom aria-label.
  • Role → dropdown with common options like button, navigation, banner, main, etc. to override semantic UI depending on the use case.
  • Tab Index → to manage keyboard focus order (would be -1, 0 or 1).

Later, we can also extend it with additional accessibility options such as aria-hidden to hide decorative elements or prevent screen readers from announcing irrelevant content, aria-expanded for managing the state of collapsible sections or dropdowns, and other attributes that can enhance navigation and usability for assistive technologies.

aerodeval avatar Nov 12 '25 11:11 aerodeval

Here is an example implementation for the above.

Image

Please let me know if you have any feedback or suggestions for improvement.

aerodeval avatar Nov 13 '25 18:11 aerodeval

https://github.com/frappe/builder/pull/431

surajshetty3416 avatar Nov 17 '25 03:11 surajshetty3416