1 parent efec192 commit 61e6a79Copy full SHA for 61e6a79
1 file changed
GoogleKeepA11yFixes.user.js
@@ -146,7 +146,7 @@ const LOAD_TWEAKS = [
146
147
// Attributes that should be watched for changes and cause dynamic tweaks to be
148
// applied.
149
-const DYNAMIC_TWEAK_ATTRIBS = ["style"];
+const DYNAMIC_TWEAK_ATTRIBS = ["style", "class"];
150
151
// Tweaks that must be applied whenever an element is added/changed.
152
const DYNAMIC_TWEAKS = [
@@ -159,6 +159,10 @@ const DYNAMIC_TWEAKS = [
159
if (content) {
160
el.setAttribute("aria-labelledby", setAriaIdIfNecessary(content));
161
}
162
+ el.removeAttribute("aria-description");
163
+ if (el.classList.contains("IZ65Hb-bJ69tf")) {
164
+ el.setAttribute("aria-description", "pinned");
165
+ }
166
}},
167
// Check boxes in lists.
168
{selector: '[role="checkbox"]',
0 commit comments