From 7b28f61f174fa6db40b28299626e4792b306a8f2 Mon Sep 17 00:00:00 2001 From: Dan Finn Date: Wed, 11 Feb 2026 13:12:41 -0500 Subject: [PATCH] fix: remove click-to-select substitution rules The ActionVerbs rule was flagging all instances of "click" for buttons, links, and checkboxes and suggesting "select" instead. This produced excessive false positives in PRs since "click" is standard and widely understood. The "type" to "enter" substitutions are retained. Also updates InputVerbs.yml to suggest "click" instead of "select" for button interactions. --- styles/PDocs/ActionVerbs.yml | 14 -------------- styles/PDocs/InputVerbs.yml | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/styles/PDocs/ActionVerbs.yml b/styles/PDocs/ActionVerbs.yml index d48cb6d..d8c056f 100644 --- a/styles/PDocs/ActionVerbs.yml +++ b/styles/PDocs/ActionVerbs.yml @@ -13,17 +13,3 @@ swap: type your (\w+) (?:in|into) the (?:\w+ )?(field|box): enter your $1 in the $2 type (?:the|a|an) (\w+) (?:in|into) the (?:\w+ )?(field|box): enter $1 in the $2 type or (?:copy and )?paste: enter - - # Prefer "select" over "click" for UI interactions - # "Select" works with keyboard, mouse, touch, voice, and assistive technologies - click the (\*\*[^*]+\*\*) button: select the $1 button - click the (\*\*[^*]+\*\*) link: select the $1 link - click on the (\*\*[^*]+\*\*) button: select the $1 button - click on the (\*\*[^*]+\*\*) link: select the $1 link - click the (\w+(?:\s+\w+)?) button: select the $1 button - click the (\w+(?:\s+\w+)?) link: select the $1 link - click on the (\w+(?:\s+\w+)?) button: select the $1 button - click on the (\w+(?:\s+\w+)?) link: select the $1 link - click the (\w+(?:\s+\w+)?) checkbox: select the $1 checkbox - click on the (\w+(?:\s+\w+)?) checkbox: select the $1 checkbox - click to (\w+): select to $1 diff --git a/styles/PDocs/InputVerbs.yml b/styles/PDocs/InputVerbs.yml index 2d6f833..b616d81 100644 --- a/styles/PDocs/InputVerbs.yml +++ b/styles/PDocs/InputVerbs.yml @@ -1,5 +1,5 @@ extends: existence -message: "For accessibility, use 'press' only for keyboard keys. Use 'select' for buttons: '%s'." +message: "For accessibility, use 'press' only for keyboard keys. Use 'click' for buttons: '%s'." link: https://docs.digitalocean.com/style/digitalocean/language/verbs ignorecase: true level: error