Skip to content

Commit

Permalink
Address an issue with the scroll behaviour and close button of the de…
Browse files Browse the repository at this point in the history
…tailed view (#859)
  • Loading branch information
clementprdhomme authored and SARodrigues committed Apr 3, 2024
1 parent bf166dc commit 6554a82
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions frontend/components/map/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export const Map: FC<MapProps> = ({
onMapLoad,
onMapViewportChange,
dragPan,
dragRotate,
dragRotate = false,
scrollZoom,
touchZoom,
touchRotate,
touchRotate = false,
doubleClickZoom,
width = '100%',
height = '100%',
Expand Down
24 changes: 12 additions & 12 deletions frontend/containers/project-details/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ export const ProjectDetails: FC<ProjectDetailsProps> = ({

return (
<div className={className}>
<Button
size="smallest"
theme="naked"
className="sticky z-20 ml-auto mr-4 text-gray-400 pointer-events-auto top-4 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-dark"
aria-label={intl.formatMessage({
defaultMessage: 'Close project details card',
id: 'hmK5Jb',
})}
onClick={onClose}
>
<XIcon className="w-6 h-6" aria-hidden={true} />
</Button>
<div className="absolute top-0 right-0 z-20 w-full h-full overflow-hidden pointer-events-none">
<Button
size="smallest"
theme="naked"
className="absolute text-gray-400 pointer-events-auto right-4 top-4 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-dark"
aria-label={intl.formatMessage({
defaultMessage: 'Close project details card',
id: 'hmK5Jb',
})}
onClick={onClose}
>
<XIcon className="w-6 h-6" aria-hidden={true} />
</Button>
{project.looking_for_funding && (
<span className="absolute px-10 py-2 text-xs text-center origin-top-left rotate-45 w-60 -top-10 -right-28 bg-green-dark text-green-light">
<FormattedMessage defaultMessage="Looking for funding" id="Czc5vB" />
Expand Down

0 comments on commit 6554a82

Please sign in to comment.