Skip to content

Commit

Permalink
Merge pull request #42 from AplinkosMinisterija/more-accessibility
Browse files Browse the repository at this point in the history
display map button fix
  • Loading branch information
LWangllix authored Dec 13, 2024
2 parents 813772f + d34e9e4 commit ee1e110
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/map/DisplayMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createSearchParams } from 'react-router-dom';
import styled from 'styled-components';
import Cookies from 'universal-cookie';
import api from '../../api';
import { device } from '../../styles';
import { ButtonVariants, device } from '../../styles';
import { Url } from '../../utils/constants';
import { handleErrorFromServerToast } from '../../utils/functions';
import Icon from '../other/Icons';
Expand Down Expand Up @@ -110,6 +110,7 @@ const DisplayMap = ({ height, error, places = [], fullScreen = false }: MapProps
popup={showFullScreen}
type="button"
onClick={handleToggle}
variant={ButtonVariants.TRANSPARENT}
aria-label={showFullScreen ? 'Exit fullscreen' : 'Enter fullscreen'}
>
<StyledIconContainer>
Expand Down Expand Up @@ -206,7 +207,9 @@ const StyledButton = styled(Button)<{ popup: boolean }>`
z-index: 10;
right: ${({ popup }) => (popup ? 28 : 11)}px;
top: ${({ popup }) => (popup ? 28 : 15)}px;
min-width: 28px;
width: 28px;
padding: 0;
background-color: white;
height: 28px;
@media ${device.mobileL} {
Expand Down

0 comments on commit ee1e110

Please sign in to comment.