fix: boost keyboard selection CSS specificity, add debug logging for visual state
This commit is contained in:
@@ -87,6 +87,9 @@ window.OutlookRelook.Keyboard = (function () {
|
|||||||
var idx = findItemById(items, id);
|
var idx = findItemById(items, id);
|
||||||
if (idx >= 0) {
|
if (idx >= 0) {
|
||||||
items[idx].classList.add('or-kb-selected');
|
items[idx].classList.add('or-kb-selected');
|
||||||
|
console.log('[Outlook Relook] Applied or-kb-selected to', id.substring(0, 20), 'hasClass:', items[idx].classList.contains('or-kb-selected'));
|
||||||
|
} else {
|
||||||
|
console.log('[Outlook Relook] Could not find item for selected id:', id.substring(0, 20));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -403,32 +403,32 @@ html[data-or-unified-header="true"] .fui-Toolbar ~ div {
|
|||||||
KEYBOARD NAVIGATION
|
KEYBOARD NAVIGATION
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
/* Focus cursor — the message the keyboard is currently pointing at */
|
/* Focus cursor — the message the keyboard is currently pointing at.
|
||||||
.or-kb-focused {
|
High specificity to beat theme selectors. */
|
||||||
|
html[data-outlook-relook-scheme] [role="option"].or-kb-focused,
|
||||||
|
html[data-outlook-relook-scheme] [role="listitem"].or-kb-focused,
|
||||||
|
html .or-kb-focused {
|
||||||
outline: 2px solid var(--or-accent, #0078d4) !important;
|
outline: 2px solid var(--or-accent, #0078d4) !important;
|
||||||
outline-offset: -2px;
|
outline-offset: -2px;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Selected/checked messages */
|
/* Selected/checked messages — high specificity + strong visual */
|
||||||
.or-kb-selected {
|
html[data-outlook-relook-scheme] [role="option"].or-kb-selected,
|
||||||
background-color: rgba(0, 120, 212, 0.08) !important;
|
html[data-outlook-relook-scheme] [role="listitem"].or-kb-selected,
|
||||||
|
html[data-outlook-relook-scheme="light"] [role="option"].or-kb-selected,
|
||||||
|
html[data-outlook-relook-scheme="light"] [role="listitem"].or-kb-selected,
|
||||||
|
html .or-kb-selected {
|
||||||
|
background-color: rgba(0, 120, 212, 0.12) !important;
|
||||||
|
border-left: 3px solid var(--or-accent, #0078d4) !important;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
html[data-outlook-relook-scheme="dark"] .or-kb-selected {
|
html[data-outlook-relook-scheme="dark"] [role="option"].or-kb-selected,
|
||||||
background-color: rgba(100, 181, 246, 0.12) !important;
|
html[data-outlook-relook-scheme="dark"] [role="listitem"].or-kb-selected {
|
||||||
}
|
background-color: rgba(100, 181, 246, 0.18) !important;
|
||||||
|
border-left: 3px solid var(--or-accent, #64b5f6) !important;
|
||||||
/* Selection indicator — small left bar */
|
|
||||||
.or-kb-selected::before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
width: 3px;
|
|
||||||
background: var(--or-accent, #0078d4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Selection count badge (injected by keyboard.js) */
|
/* Selection count badge (injected by keyboard.js) */
|
||||||
|
|||||||
Reference in New Issue
Block a user