You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#12981 removed an accessibility attribution which Lighthouse wants on the compact attribution control.
mapbox-gl-js version: 3.4
browser: Chrome
Steps to Trigger Behavior
Run a simple map using the compact attribution control (source code below)
Run lighthouse report using Chrome dev tools
See failure image posted below
Link to Demonstration
Attribution control does not work in https://jsbin.com, so listing simple source code here.
Run the following in Chrome and run a lighthouse report in the chrome dev tools
<!DOCTYPE html><html><head><metacharset="utf-8"><title>Display a map on a webpage</title><metaname="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"><linkhref="https://api.mapbox.com/mapbox-gl-js/v3.4.0/mapbox-gl.css" rel="stylesheet"><scriptsrc="https://api.mapbox.com/mapbox-gl-js/v3.4.0/mapbox-gl.js"></script><style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
</style></head><body><divid="map"></div><script>mapboxgl.accessToken='ACCESS_TOKEN'constmap=newmapboxgl.Map({container: 'map',center: [-74.5,40],zoom: 9})map.on('load',()=>{constcontrol=newmapboxgl.AttributionControl({compact: true,})map.addControl(control,'bottom-left')})</script></body></html>
This will trigger a report with this at the top
The PR removing the accessibility attribution was in release 3.10. Any users gating CI behind a lighthouse check will fail once consuming >= that version.
Expected Behavior
Accessibility attribute aria-label exists.
Actual Behavior
Accessibility attribute is missing
The text was updated successfully, but these errors were encountered:
Description
#12981 removed an accessibility attribution which Lighthouse wants on the compact attribution control.
mapbox-gl-js version: 3.4
browser: Chrome
Steps to Trigger Behavior
Link to Demonstration
Attribution control does not work in https://jsbin.com, so listing simple source code here.
Run the following in Chrome and run a lighthouse report in the chrome dev tools
This will trigger a report with this at the top
The PR removing the accessibility attribution was in release 3.10. Any users gating CI behind a lighthouse check will fail once consuming >= that version.
Expected Behavior
Accessibility attribute aria-label exists.
Actual Behavior
Accessibility attribute is missing
The text was updated successfully, but these errors were encountered: