devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Add accessibility related features to the Vue Tracer

Open SaKaNa-Y opened this issue 6 months ago • 4 comments

Clear and concise description of the problem

I think Vue Tracer can be integrated with a11y features, and I’ve made an initial attempt.The result is shown in the screenshot below.I also made some design improvements for the current a11y feature.

Image Image

Suggested solution

Regarding the Vue Tracer feature: The main functionality is to inspect the a11y status of the selected element and categorize it using different colors based on the results.

Regarding the a11y panel: Find Vue-owned component roots, extract accessibility-related attributes, run a set of rule-based validations, and finally group the results by component and display them in the panel

If possible, I can submit a PR.Once approved, I will proceed with further optimization and refinement.

Alternative

No response

Additional context

No response

Validations

  • [x] Follow our Code of Conduct
  • [x] Read the Contributing Guide.
  • [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

SaKaNa-Y avatar May 07 '26 14:05 SaKaNa-Y

I would love to have this feature, but I wonder where and how do you plan to implement this feature? Shouldn't it just to be a seperate plugin?

antfu avatar May 08 '26 09:05 antfu

Yes, as a standalone plugin package, published separately like @vitejs/devtools-kit. It can first be tested in examples, and then published later.

I’d also like to know what you think about this idea overall, and whether there are any shortcomings or areas that could be improved further.😊

SaKaNa-Y avatar May 08 '26 14:05 SaKaNa-Y

In that case, it guess can just be a community plugin then?

antfu avatar May 11 '26 05:05 antfu

OK, I understand what you mean.

SaKaNa-Y avatar May 11 '26 08:05 SaKaNa-Y