Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API sites: Render entry header separate from type #51

Closed
jzaefferer opened this issue Mar 10, 2014 · 1 comment
Closed

API sites: Render entry header separate from type #51

jzaefferer opened this issue Mar 10, 2014 · 1 comment

Comments

@jzaefferer
Copy link
Member

There's an annoying usability issue on our API sites. As an example go here and try to double click the option name to copy it: http://api.jqueryui.com/datepicker/#option-onChangeMonthYear. Instead of "onChangeMonthYear" I end up selecting "onChangeMonthYearType" (note that additional "Type" at the end). Tested in Chrome, Firefox, Opera and Safari on OSX, all behave the same.

We should look into using markup that separates the two elements, to make sure the double click selects the correct text.

I actually only noticed the mistake after wondering why the callback is never triggered and only then noticed the additional "Type".

@jzaefferer
Copy link
Member Author

After running into a similar issue elsewhere, I found a workaround for this: Adding a space after the text to select, e.g. using  :

<xsl:value-of select="@name"/>&#160;

The space itself doesn't become selectable, so it seems fine to add it.

jzaefferer added a commit to jquery/jquery-wp-content that referenced this issue Apr 9, 2015
… line

Also stick multi-line default code blocks closer to their label.

Ref jquery/grunt-jquery-content#51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant