Join GitHub today
use button elements instead of anchor elements and add tooltips to zoomcontrol #1708
TL;DR: if it is a button it should be a button.
Using the correct semantics serves accessiblity and adding a tooltip (which is screen reader accessible) makes the button easier to understand for everyone. Also proper focus handling is important for keyboard users since the have no
the tooltip can be easily disabled by removing the
I just take a quick look:
@tonio I think you've got a good point here, but since this is about accessibility I think it's out of scope. (even though these controls need a work over since they are actually empty hyperlinks using
Can you please describe what you mean with the dimension changes?
I think it would be nice to cascade (parts) of a style, but to make that easier I would look into something like Sass. Using a css pre-processor also gives the advantage of optimizing the css during build. For an example of what this could look like see: https://sourceforge.net/p/dokuwikispatial/code/HEAD/tree/trunk/openlayersmap/src/scss/