We are encountering an issue with the double click behavior in the pandas
documentation and pydata-sphinx-theme
. I believe a HTML expert could shed some light on what's going wrong. Reference: https://github.com/pydata/pydata-sphinx-theme/issues/388
On this page, if I double click on "data," it erroneously selects "datastructured."
Examining the website HTML through the inspector, we see:
<dt>
<strong>data</strong>
<span class="classifier">structured ndarray, sequence of tuples or dicts, or DataFrame</span>
</dt>
The colon ":" is added via CSS:
.classifier:before {
font-style: normal;
margin: 0 0.5em;
content: ":";
display: inline-block;
}
Removing the colon reveals that there is no space between the words, causing them to be selected together.
I attempted to replicate this in a code pen, but was unsuccessful: https://codepen.io/12rambau/pen/mdXQayr
Would you mind taking a look at the page to help identify what might be causing this strange behavior?