Mapbox-gl-js: Replace <div> in compass control with an inline element

Created on 29 Aug 2016  路  2Comments  路  Source: mapbox/mapbox-gl-js

mapbox-gl-js version:

Steps to Trigger Behavior

  1. Load mapbox

    Expected Behavior

The button should have an image as a child

Actual Behavior

The button has a div as a child

image

bug good first issue

Most helpful comment

Per the HTML spec a button can contain only inline elements. A div is a block element.

All 2 comments

Why would it have to be an image? Can you explain more?

Per the HTML spec a button can contain only inline elements. A div is a block element.

Was this page helpful?
0 / 5 - 0 ratings