mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
lint: Improve data-tippy-allowHTML error message.
The error message a user gets from the linter when using the data-tippy-allowHTML attribute now conveys the fact that the <template> tag is supposed to hold the tooltip content. This might make understanding the correct workflow easier for someone who encounters this error.
This commit is contained in:
committed by
Tim Abbott
parent
537e9b1e74
commit
fb89c14f34
@@ -738,7 +738,7 @@ html_rules: List["Rule"] = [
|
||||
},
|
||||
{
|
||||
"pattern": r"(?i:data-tippy-allowHTML)",
|
||||
"description": "Never use data-tippy-allowHTML; for an HTML tooltip, set data-tooltip-template-id to the id of a <template>.",
|
||||
"description": "Never use data-tippy-allowHTML; for an HTML tooltip, set data-tooltip-template-id to the id of a <template> containing the tooltip content.",
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user