Community
Participate
Working Groups
A command with a imageClass will create a new span node and add the imageClass to it before being appended to an element. An optional parameter should be added to the command constructor, which will allow the imageClass to be added directly to the element instead of the going through the process of creating a new span element. This goes back to the web accessibility tip #1.
https://github.com/gabrielluong/orion.client/tree/Bug408154 Branch: Bug408154 commit 388b64dfb136d0ce3681bf91d847db5685343c4b commit 4d6f33c3434b23aebcca2a5514d4b9b95c6f6c24 Add option to the command constructor to allow imageClass to be appended elements https://github.com/gabrielluong/orion.client/commit/388b64dfb136d0ce3681bf91d847db5685343c4b Added the go up image class directly to the button element instead of creating a <span> and fixed the styling for the go-up sprite. You will notice that adding commandSprite class will just become redundant. Hence, why it wasn't included in the first commit. https://github.com/gabrielluong/orion.client/commit/4d6f33c3434b23aebcca2a5514d4b9b95c6f6c24 I assert that I authored 100% of the content of this contribution and have the rights to donate the content to Eclipse under the EPL
I should also mention the go-up button looks more consistent across Chrome and Firefox on Windows as a result of adding the image class directly to the button instead of creating a <span>.
The code looks good. Pushed. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=9087b1014ff6c47b084bc8b172b082717fb488b5 http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=f7dfa7de7ec9888ed3c099424d5cad9541c5b5e2