Skip to content
Brok UI

Loading…

No results

Lint UI-202

require-icon-label

Icon-only controls need an accessible name.

UI-202 default: error accessibility INACCESSIBLE_ICON_CONTROL

Configure

In the lint.rules block of ui.json. It accepts message, exclude; see the policy for what the entries match.

ui.json JSON
"require-icon-label": ["error", { "message": "...", "exclude": ["resources/views/legacy/**"] }]
terminal
php artisan ui:check --explain require-icon-label

Suppress one line

blade
{{-- ui-lint-disable-next-line require-icon-label: reason --}}