Skip to content

Commit

Permalink
refactor: border radius
Browse files Browse the repository at this point in the history
  • Loading branch information
mortennordseth committed Nov 16, 2023
1 parent 2193145 commit f0ce6bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/components/map/map.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@
position: relative;
height: 100%;
width: 100%;
}

.borderRadius__top canvas {
border-radius: 0 0 var(--border-radius-regular) var(--border-radius-regular);
overflow: hidden;
}
.borderRadius canvas {

.mapContainer__borderRadius {
border-radius: var(--border-radius-regular);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/map/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function Map({
ref={mapContainer}
className={and(
style.mapContainer,
mapLegs ? style.borderRadius : style.borderRadius__top,
mapLegs && style.mapContainer__borderRadius,
)}
/>
</FocusScope>
Expand Down

0 comments on commit f0ce6bb

Please sign in to comment.