🦄 Read once, reached once: Mantine Marquee 5.0.9

hey everyone, a small release for the Mantine Marquee, but one I'm glad I didn't ship the first way.

What changed: the copies repeat adds for the seamless loop are now hidden from screen readers and out of the Tab order. Before, a screen reader read every item once per copy, and Tab stopped on links that were scrolling off screen. With pauseOnHover, keyboard focus also brings the loop back to its start, so what you focused is actually in view.

The story: my first fix was the inert attribute, one line that does both jobs. It also blocks the mouse, so a link in a copy that scrolled into view stoped taking clicks. The copies' links now get tabindex="-1" instead, kept in step by a MutationObserver as the content changes.

The Mantine Marquee docs, section "Pause on hover and focus": two paragraphs explain the change, and below them the demo strip of linked cards (Mantine, Marquee, Split Pane, Window, Onboarding Tour, Json Tree) with the keyboard focus ring on the first card, Mantine, back at the start of the loop.

Takeaway: inert means "this part of the page isn't here", for the keyboard and for the pointer. For content that is visible but duplicated, aria-hidden plus tabindex is the honest pair.

How do you handle duplicated content in your carousels and tickers?

📚 Docs:

📦 npm:

💻 GitHub:

3 views

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.