Skip to content

Commit 61e6a79

Browse files
committed
Google Keep: Indicate whether a note in the list is pinned.
1 parent efec192 commit 61e6a79

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

GoogleKeepA11yFixes.user.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const LOAD_TWEAKS = [
146146

147147
// Attributes that should be watched for changes and cause dynamic tweaks to be
148148
// applied.
149-
const DYNAMIC_TWEAK_ATTRIBS = ["style"];
149+
const DYNAMIC_TWEAK_ATTRIBS = ["style", "class"];
150150

151151
// Tweaks that must be applied whenever an element is added/changed.
152152
const DYNAMIC_TWEAKS = [
@@ -159,6 +159,10 @@ const DYNAMIC_TWEAKS = [
159159
if (content) {
160160
el.setAttribute("aria-labelledby", setAriaIdIfNecessary(content));
161161
}
162+
el.removeAttribute("aria-description");
163+
if (el.classList.contains("IZ65Hb-bJ69tf")) {
164+
el.setAttribute("aria-description", "pinned");
165+
}
162166
}},
163167
// Check boxes in lists.
164168
{selector: '[role="checkbox"]',

0 commit comments

Comments
 (0)