FIX: uses aria-label instead of title as it's useless with popover (#7258)
This commit is contained in:
parent
8fb63b2706
commit
52332ccd72
|
@ -69,7 +69,7 @@
|
|||
|
||||
$element
|
||||
.html(DATE_TEMPLATE)
|
||||
.attr("title", textPreview)
|
||||
.attr("aria-label", textPreview)
|
||||
.attr("data-html-tooltip", `<div class="previews">${htmlPreview}</div>`)
|
||||
.addClass("cooked-date")
|
||||
.find(".relative-time")
|
||||
|
|
|
@ -130,7 +130,7 @@ export function setup(helper) {
|
|||
helper.whiteList([
|
||||
"span.discourse-local-date",
|
||||
"span[data-*]",
|
||||
"span[title]"
|
||||
"span[aria-label]"
|
||||
]);
|
||||
|
||||
helper.registerOptions((opts, siteSettings) => {
|
||||
|
|
Loading…
Reference in New Issue