Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can an icon button label a field by itself? #3276

Closed
kimviens opened this issue Jul 12, 2023 · 2 comments
Closed

Can an icon button label a field by itself? #3276

kimviens opened this issue Jul 12, 2023 · 2 comments

Comments

@kimviens
Copy link

Hello everyone,

I was reading over the Technique G167: Using an adjacent button to label the purpose of a field. I noticed that each example for the button, the button contained text. Therefore, I was wondering if a button who's only content is an icon, like a magnifying glass for "Search", would be sufficient for this technique?

Here is a code example:
<input type="text" name="search" id="search">
<button type="submit" aria-label="Search"><i class="search"></i></button>

@patrickhlauke
Copy link
Member

yes

@kimviens
Copy link
Author

Excellent, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants