VBC-914: cursor-pointer-on-text
warningCategory: ux-dx
Analysis: Regex (line by line)
File types: .css
Scope: source code only, ignoring anything inside strings and comments
Excluded selectors: button, a, summary, label, [role='button'], [role="button"], input[type='submit'], input[type='button'], .btn, .button, .clickable
Tags: ux
What it reports
cursor: pointer applied to potentially non-interactive element at line {line}. Don't lie to the user about clickability. Only use for truly interactive components.
Flagged
css
.card { cursor: pointer; }Not flagged
css
button { cursor: pointer; }css
a:hover { cursor: pointer; }Pattern
regex
cursor:\s*pointer