docfx icon indicating copy to clipboard operation
docfx copied to clipboard

[Feature Request] Add a role='button' attribute to the theme selector drop down

Open ehakram opened this issue 11 months ago • 2 comments

Is your feature request related to a problem? Please describe. When running docfx generated websites through PageSpeed Insights, I get the following: "[aria-] attributes do not match their roles." For more context: https://dequeuniversity.com/rules/axe/4.7/aria-allowed-attr

Describe the solution you'd like Probably: replace line 40 from docfx/templates/modern/src/theme.ts with the following: Notice that role='button' was added.

Thank you.

ehakram avatar Mar 25 '24 01:03 ehakram