mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: uses aria-label instead of title as it's useless with popover (#7258)
This commit is contained in:
@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
$element
|
$element
|
||||||
.html(DATE_TEMPLATE)
|
.html(DATE_TEMPLATE)
|
||||||
.attr("title", textPreview)
|
.attr("aria-label", textPreview)
|
||||||
.attr("data-html-tooltip", `<div class="previews">${htmlPreview}</div>`)
|
.attr("data-html-tooltip", `<div class="previews">${htmlPreview}</div>`)
|
||||||
.addClass("cooked-date")
|
.addClass("cooked-date")
|
||||||
.find(".relative-time")
|
.find(".relative-time")
|
||||||
|
@ -130,7 +130,7 @@ export function setup(helper) {
|
|||||||
helper.whiteList([
|
helper.whiteList([
|
||||||
"span.discourse-local-date",
|
"span.discourse-local-date",
|
||||||
"span[data-*]",
|
"span[data-*]",
|
||||||
"span[title]"
|
"span[aria-label]"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
helper.registerOptions((opts, siteSettings) => {
|
helper.registerOptions((opts, siteSettings) => {
|
||||||
|
Reference in New Issue
Block a user