Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,9 @@ export const Composer = forwardRef< ComposerHandle, ComposerProps >( function Co
onPointerCancel={ finishComposerResize }
onLostPointerCapture={ finishComposerResize }
onKeyDown={ handleComposerResizeKeyDown }
/>
>
<span className={ styles.resizeHandleIndicator } aria-hidden="true" />
</div>
{ isDraggingOver ? (
<div className={ styles.dropOverlay } aria-hidden="true">
{ __( 'Drop files to attach' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
transition: outline-color 80ms ease, outline-width 80ms ease;
}

.shell:focus-within {
.shell:focus-within:not(:has(.resizeHandle:focus-visible)) {
background-color: var(--wpds-color-bg-surface-neutral-strong);
background-image: none;
backdrop-filter: none;
Expand All @@ -58,16 +58,29 @@
right: var(--composer-inline-padding);
left: var(--composer-inline-padding);
z-index: 20;
display: flex;
align-items: center;
justify-content: center;
height: 10px;
cursor: ns-resize;
touch-action: none;
outline: none;
-webkit-app-region: no-drag;
}

.resizeHandle:focus-visible {
border-radius: 999px;
outline: 2px solid var(--composer-focus-ring);
outline-offset: 2px;
/* Thin full-width line that lights up on hover, keyboard focus, and while dragging. */
.resizeHandleIndicator {
width: 100%;
height: 2px;
background-color: var(--wpds-color-stroke-interactive-brand, #2563eb);
opacity: 0;
transition: opacity 120ms ease;
}

.resizeHandle:hover .resizeHandleIndicator,
.resizeHandle:focus-visible .resizeHandleIndicator,
.shellResizing .resizeHandleIndicator {
opacity: 1;
}

.dropOverlay {
Expand Down
Loading