Replies: 3 comments
-
I don't think this should be the default. |
Beta Was this translation helpful? Give feedback.
-
Thanks -- I was not sure what the expectation for a SR would be, so appreciate the input. |
Beta Was this translation helpful? Give feedback.
-
It could also be prevented by adding proper ARIA labels to the SVG: <svg role="img" aria-label="Increased by" class="..." With this approach you don't need the extra span with |
Beta Was this translation helpful? Give feedback.
-
👋 I think this is a bug, but willing to admit that I'm by no-means an accessibility expert.
When adding screen-reader content with
sr-only
, if I select over the content it ends up on my clipboard.You can see an example from the TailwindUI Stats section:
If you select the percentage, sometimes you'll end up with "Increased by5.4%" in your clipboard depending on how much you drag. There is no visual indicator that you have extra text when dragging.
I can work around this by adding
select-none
but shouldsr-only
be forcing that style? It was unexpected behavior to me.Beta Was this translation helpful? Give feedback.
All reactions