Pular para o conteúdo
Skillpedia
Sites e telas (frontend)75 mil · #2764

button-name

O que ela faz

Esta skill verifica se todos os botões de uma página têm um nome descritivo. Ela é para desenvolvedores que criam botões com ícones ou controles personalizados.

Quando usar

  • ✓Quando você adiciona botões só com ícone, como um ícone de fechar ou de busca.
  • ✓Quando um botão é anunciado pelo leitor de tela apenas como botão.
  • ✓Quando um link leva a uma nova página, mas tem aparência de botão.

Link da skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/button-name/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/button-name/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Garanta que cada botão com ícone do cabeçalho do meu site tenha um nome que leitores de tela consigam ler.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente verifica cada botão em busca de texto visível, aria-label ou aria-labelledby, e substitui por links adequados os botões que apenas navegam.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Provide accessible names for buttons

Buttons without accessible names are announced as 'button' by screen readers, leaving users unable to determine what action will be triggered.

Quick Reference

  • Ensure every <button> has a discernible, descriptive label
  • Use inner text, aria-label, or aria-labelledby for identification
  • Use buttons for actions and state changes, not page navigation
  • Avoid empty buttons or those containing only non-text icons

Check

Scan for buttons that lack descriptive text or accessible labels.

Fix

Add an accessible name to the button using text content, an aria-label, or an aria-labelledby reference. If the element navigates to another URL, replace the button with a link instead of keeping button semantics.

Explain

Explain why accessible names are critical for screen reader users to identify and interact with buttons, and why buttons should trigger actions while links should handle navigation.

Code Review

Review the rendered markup and interactive states that affect Provide accessible names for buttons. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/button-name

Perguntas frequentes

O que há de errado com um botão sem nome?

A skill diz que leitores de tela anunciam apenas button, então o usuário não consegue saber o que vai acontecer.

Quando devo usar um link?

A skill diz que, se o elemento leva a outra URL, deve-se usar um link em vez da semântica de botão.

Quais nomes um botão pode usar?

Texto interno, aria-label ou aria-labelledby.

Detalhes

Descrição original do autor

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Provide accessible names for buttons. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

Popularidade

Estrelas no GitHub
75 mil
Posição no ranking
#2764
Licença
MIT
Atualizada em
31/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas