Skip to content

Commit ed1a567

Browse files
committed
fix: hide focused element & renamed copy message item
1 parent ac9dd3b commit ed1a567

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

stylesheets/_global.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,9 @@ button,
171171
fieldset {
172172
padding: 0;
173173
}
174+
175+
*:focus-visible {
176+
// The FocusTrap we use adds a border around the focused element, even if TAB has not been pressed yet
177+
// This hides the outline altogether. We might consider adding a new variable linked to a theme setting to fix this, for all users
178+
outline: none;
179+
}

ts/components/conversation/right-panel/overlay/message-info/OverlayMessageInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function CopyMessageBodyButton({ messageId }: WithMessageIdOpt) {
201201
}
202202
return (
203203
<PanelIconButton
204-
text={{ token: 'copy' }}
204+
text={{ token: 'messageCopy' }}
205205
iconElement={<PanelIconLucideIcon unicode={LUCIDE_ICONS_UNICODE.COPY} />}
206206
onClick={() => {
207207
clipboard.writeText(messageBody || '');

0 commit comments

Comments
 (0)