Open ShaydeNofziger opened 4 years ago
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED
Commit: 5a23ce8fefb0121d14fca3b392be62ec9aee497b Build details: https://travis-ci.org/blackbaud-sky-savage/skyux/builds/682093711
(Please note that this is a fully automated comment.)
Screenshots of how this looks after double-clicking the key-value:
Before fix:
After fix:
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 thebb-key-info-value
div to prevent the first word in thebb-key-info-label
div from being highlighted on double-click. Likewise, this prevents the last word of thebb-key-info-value
div from being highlighted upon double-click of thebb-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).