Why assign it any space? The visibility:hidden css style does but what about the hidden attribute. The hidden="hidden" attribute should not still allocate space on the page.
Or perhaps do the reverse. Use the aria hidden="true" on the normal displayed text that describes the page and add an aria label instead of aria-describedby to prevent duplication.
Perhaps try absolute positioning off the screen. Or try setting the foreground color to the background color and shrink font size to be tiny. A an accessibility reader should have no trouble reading text taken from the dom no matter the css specified font size.
Last edited by KevinH; 07-02-2025 at 04:15 PM.
|