Skip to content

Commit

Permalink
fix(layer-selector): add drop shadow to match other esri map widgets
Browse files Browse the repository at this point in the history
This must have broken in a recent esri js release.
  • Loading branch information
stdavis committed Nov 21, 2024
1 parent d463ee5 commit 98931f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/layer-selector/src/LayerSelector.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
background: #fff;
pointer-events: auto;
}
.layer-selector.esri-component.esri-widget {
margin-bottom: 0;
}
.layer-selector--width {
width: 8em;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/layer-selector/src/LayerSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ExpandableContainer = (props) => {
return (
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
<div
className="layer-selector"
className="layer-selector esri-component esri-widget"
// onFocus={() => setExpanded(true)}
// onBlur={() => setExpanded(false)}
onMouseOver={() => setExpanded(true)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`LayerSelector tests > LayerSelector snapshot 1`] = `
<div>
<div
aria-haspopup="true"
class="layer-selector"
class="layer-selector esri-component esri-widget"
>
<input
alt="layers"
Expand Down

0 comments on commit 98931f3

Please sign in to comment.