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

Button Image Alignment Fix (#30) #303

Merged
merged 4 commits into from Dec 9, 2013
Merged

Button Image Alignment Fix (#30) #303

merged 4 commits into from Dec 9, 2013

Conversation

msalsbery
Copy link
Member

Fixed Button class button element for consistent rendering across browsers.

Fix for #30.

Changed button element from button to div for consistent rendering
across browsers.
@msalsbery
Copy link
Member Author

New commit...

Made the Button divs tab stops so keyboard navigation works

Wrapped the images in a single div and used that as the content of a
button element.
Removed commented and leftover code
@msalsbery
Copy link
Member Author

New commits...

A better fix. Wrapped the images in a single div and used that as the content of a button element.

Pretty much the same result as last commit, but as a button element any accessibility features will be there too.

Removed commented and leftover code

@msalsbery
Copy link
Member Author

Tested on IE 11, Firefox 25, Chrome 31, Opera 18 (Windows 7)

@iangilman
Copy link
Member

Beautiful! Thank you for sorting this out in a way that maintains accessibility.

iangilman added a commit that referenced this pull request Dec 9, 2013
@iangilman iangilman merged commit db81879 into openseadragon:master Dec 9, 2013
iangilman added a commit that referenced this pull request Dec 9, 2013
@msalsbery msalsbery deleted the Button-Images branch December 10, 2013 18:07
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

Successfully merging this pull request may close these issues.

None yet

2 participants