Файли
openidea/src/ui/Popup.module.css
T
l0ng-ai ee99b3641f fix(ui): Hide the focus outline around dropdown popups
The global :focus-visible rule loads after the module CSS and has the same
specificity, so it overrode `outline: none` on the focused listbox wrapper
and drew a square blue frame inside the Select popup.

Claude-Session: https://claude.ai/code/session_01B65qLEKnkeYTGdbwhLpjCu
2026-10-23 21:23:06 +08:00

46 рядки
988 B
CSS

.popup {
z-index: var(--z-popup);
overflow: auto;
opacity: 0;
}
.popup:focus-visible {
outline: none;
}
.popup[data-positioned] {
opacity: 1;
animation: popIn var(--dur-fast) var(--ease);
}
.popup::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.popup::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb);
border: 2px solid transparent;
border-radius: 5px;
background-clip: content-box;
}
.popup::-webkit-scrollbar-track,
.popup::-webkit-scrollbar-corner {
background: transparent;
}
/* Islands popups: container-popup-bg, 1px popup border, large arc, soft shadow. */
.surface {
background: var(--bg-popup);
border: 1px solid var(--border-popup);
border-radius: var(--radius-popup-large, 10px);
box-shadow: var(--shadow-popup);
color: var(--fg-strong);
}
@keyframes popIn {
from {
opacity: 0;
transform: translateY(-2px);
}
}
@media (prefers-reduced-motion: reduce) {
.popup[data-positioned] {
animation: none;
}
}