My humble suggestion is to make the legend show by default and make the minimized button view a configurable state, rather than the default. That's not something you need to do before we include the plugin though.
I got valuable suggestion through pull request to mapbox-gl-js-docs.
I got valuable suggestion through pull request to
mapbox-gl-js-docs
.