Skip to main content

Documentation Index

Fetch the complete documentation index at: https://fieldpulse.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

2025-05-22 - [Enhancing accessibility for DOM-injected components]

Learning: Components injected via DOM manipulation (like the footer navigation in this Mintlify setup) often miss critical accessibility attributes that are standard in native components. Specifically, collapsible sections need aria-controls to link headers to their content, and explicit :focus-visible styles are necessary for keyboard navigation when using tabindex="0" on non-interactive elements like <p>. Action: Always ensure that any DOM-injected interactive elements include appropriate ARIA attributes (aria-expanded, aria-controls, role) and have clear, visible focus states in the CSS for all themes. Learning: Custom-injected navigation (like our Mintlify footer) fails to provide orientation for users because it lacks active state highlighting. Adding logic to compare window.location.pathname with link hrefs, and applying aria-current="page" along with visual styles, significantly improves both usability and accessibility. Action: Always implement active state logic and ARIA attributes when building custom navigation components from scratch.