'Jonas Wagner' via Chromium-discuss
2018-12-05 14:15:19 UTC
Hi, Chromium experts,
I'd like to ask for your advice to improve the search experience (using
CTRL+F search) on a website I manage.
The website uses buttons with material icons, which look like this:
<a role="button" title="Add a comment" aria-label="Add a comment" href="#"
tabindex="0">
<i class="material-icons" aria-hidden="true">comment</i>
</a>
When the user searches for "comment" using CTRL+F, the browser highlights
all those icons. This is undesired and confusing. Users don't see the
actual "comment" text, because the material icons font treats it as a
ligature and replaces it with the comment icon. Also, we have many such
buttons on a single page; this makes it almost impossible to find the word
"comment" in the real page content, because it is drowned in the spurious
results from material icons.
Do you have suggestions on how to improve our HTML to fix this? One idea
would be to put the text "comment": into a ::after CSS selector. That
requires complex changes to our site generator, but it would work.
However, I believe a much better solution would be to ignore text for
CTRL+F search if it has an aria-hidden="true" attribute. This matches the
behavior of screen readers, and I believe it would be a better experience
for Chromium users. Could this be considered as a feature request?
Thanks!
Jonas
I'd like to ask for your advice to improve the search experience (using
CTRL+F search) on a website I manage.
The website uses buttons with material icons, which look like this:
<a role="button" title="Add a comment" aria-label="Add a comment" href="#"
tabindex="0">
<i class="material-icons" aria-hidden="true">comment</i>
</a>
When the user searches for "comment" using CTRL+F, the browser highlights
all those icons. This is undesired and confusing. Users don't see the
actual "comment" text, because the material icons font treats it as a
ligature and replaces it with the comment icon. Also, we have many such
buttons on a single page; this makes it almost impossible to find the word
"comment" in the real page content, because it is drowned in the spurious
results from material icons.
Do you have suggestions on how to improve our HTML to fix this? One idea
would be to put the text "comment": into a ::after CSS selector. That
requires complex changes to our site generator, but it would work.
However, I believe a much better solution would be to ignore text for
CTRL+F search if it has an aria-hidden="true" attribute. This matches the
behavior of screen readers, and I believe it would be a better experience
for Chromium users. Could this be considered as a feature request?
Thanks!
Jonas
--
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.