Remove Border Around Basemap Gallery Items

03-21-2019 09:03 AM
Occasional Contributor

I'm working on customizing the Basemap Gallery widget by editing a Sass theme created by this tool: I want to denote the selected item with a border around its thumbnail and a different color border around the thumbnail on hover.

I've achieved this, but I can't get rid of the light blue border/outline that appears around .basemap-gallery__item on focus. Where is this property coming from? I've searched for every border or outline property in the _BasemapGallery mixin and can't track it down. I've also looked through the _Widget, _View, _UI mixins and can't seem to find the place where this border is assigned.

Here's a Fiddle with the compiled CSS theme that shows the expected green outlines on hover and select as well as the unwanted blue outline on focus.

I wasn't sure if there was a good way to post the .scss, but let me know how and I can post any of those files too.

EDIT: Using dev tools/Force element state, it looks like the outline is coming from the user agent stylesheet for li:focus. setting an override in my local stylesheet removes this behavior.

0 Kudos
0 Replies