Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix(search): Copy text from read-only code host configuration input#63239

Merged
fkling merged 1 commit into
mainfrom
fkling/srch-518-bug-when-copying-code-host-config-admin-needs-to-go-into
Jun 13, 2024
Merged

fix(search): Copy text from read-only code host configuration input#63239
fkling merged 1 commit into
mainfrom
fkling/srch-518-bug-when-copying-code-host-config-admin-needs-to-go-into

Conversation

@fkling

@fkling fkling commented Jun 13, 2024

Copy link
Copy Markdown
Contributor

PR #49682 made some CSS changes to hide the caret as well as bracket matching for this input. I assume that seeing those in a read-only input was confusing.

However, hiding the textarea element also breaks copying the input's value. Instead of hiding the textarea, we are now hiding the visiual representation of the caret.

A noteable difference in behavior now is that it's possible to focus the input via tab, but there is no visual indiciation that the editor has focus (since we hide the caret, as before).

Test plan

Manual tested on https://sourcegraph.test:3443/site-admin/external-services/RXh0ZXJuYWxTZXJ2aWNlOjky

PR #49682 made some CSS changes to hide the caret as well as bracket
matching for this input. I assume that seeing those in a read-only input
was confusing.

However, hiding the textarea element also breaks copying the input's
value. Instead of hiding the textarea, we are now hiding the visiual
representation of the caret.

A noteable difference in behavior now is that it's possible to focus the
input via tab, but there is no visual indiciation that the editor has
focus (since we hide the caret, as before).
@fkling fkling requested a review from a team June 13, 2024 08:20
@cla-bot cla-bot Bot added the cla-signed label Jun 13, 2024

@camdencheek camdencheek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the quick fix!

@fkling fkling enabled auto-merge (squash) June 13, 2024 16:01
@fkling fkling merged commit 0b8d12d into main Jun 13, 2024
@fkling fkling deleted the fkling/srch-518-bug-when-copying-code-host-config-admin-needs-to-go-into branch June 13, 2024 16:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants