Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Support double-click to highlight keyinfo value/label individually#1129

Open
ShaydeNofziger wants to merge 1 commit intoblackbaud:masterfrom
ShaydeNofziger:patch-1
Open

Support double-click to highlight keyinfo value/label individually#1129
ShaydeNofziger wants to merge 1 commit intoblackbaud:masterfrom
ShaydeNofziger:patch-1

Conversation

@ShaydeNofziger
Copy link

@ShaydeNofziger ShaydeNofziger commented May 1, 2020

div tags without a separating character (newline or space, for example) causes a "double-click" to highlight the first word of the second div. Add a space after the bb-key-info-value div to prevent the first word in the bb-key-info-label div from being highlighted on double-click. Likewise, this prevents the last word of the bb-key-info-value div from being highlighted upon double-click of the bb-key-info-label div.

This is re-produceable in latest version of Edge and Chrome on Windows 10. I have tested the fix in both browsers.

Alternative to a space after the bb-key-info-value would be a single newline between the two divs. That may be more readable to future maintainers.

I'll leave it up to maintainers as to which is preferred (space vs newline).

Support double-click to highlight on value without including label value
@CLAassistant
Copy link

CLAassistant commented May 1, 2020

CLA assistant check
All committers have signed the CLA.

@blackbaud-sky-savage
Copy link
Collaborator

Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED

Commit: 5a23ce8
Build details: https://travis-ci.org/blackbaud-sky-savage/skyux/builds/682093711

(Please note that this is a fully automated comment.)

@ShaydeNofziger
Copy link
Author

Screenshots of how this looks after double-clicking the key-value:

Before fix:
image

After fix:
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants