feat: improve interactive element color accessibility on api docs #9076
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
implements: #9075
Description
The table of contents to the right of the page has a list of links that, when hovered, are given an underline. There is also a sidebar to the left of the page with titles and links to reference documentation. The color contrast on these elements can be improved by altering the hover and active state color of these elements for better visual accessibility.
This commit changes the color of these elements, along with the navbar, search widget, and jump anchors in a visually nice and accessible way. Some background and border transitions are included as well to make for a nice experience.
This extends to the light theme, dark theme, desktop screen width and mobile screen width.
Before and After demonstration:
before-and-after-compressed.1.mp4
(note: I forgot to showcase the search widget in this video)
Specific Changes proposed
This pull updates the CSS file located at
/build/docs/styles/videojs.css
.It overrides some clean-jsdoc-theme default styles to make the page look nicer with better color contrast.
Requirements Checklist
npm run docs:api
to error