Skip to content

Commit 8bc4c17

Browse files
fix(PDYE-1297): reajuste fondo, borde y posicion boton (#732)
Co-authored-by: Javiera Munita <javiera.munita@eclass.cl>
1 parent 958f544 commit 8bc4c17

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

src/molecules/NavBarButtons/NavBarButton.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Box } from '@chakra-ui/react'
1+
import { Box, useMediaQuery } from '@chakra-ui/react'
22

33
import { vars } from '@theme'
44
import { HelpIcon } from '@/molecules/NavBarButtons/Icons/HelpIcon'
@@ -29,6 +29,8 @@ export const NavBarButton = ({
2929
onClick,
3030
type,
3131
}: ButtonProps): JSX.Element => {
32+
const [isMobile] = useMediaQuery('(max-width: 640px)')
33+
3234
const buttonType = {
3335
accessibility: {
3436
icon: <Accessibility />,
@@ -62,11 +64,14 @@ export const NavBarButton = ({
6264
id={isAccessibility ? 'UserWayButton' : ''}
6365
onClick={isAccessibility ? triggerWidget : onClick}
6466
sx={{
67+
background: 'none !important',
68+
border: '1px transparent !important',
6569
cursor: 'pointer',
6670
display: 'flex',
6771
gap: '8px',
6872
h: '30px',
6973
maxH: '30px',
74+
p: '0',
7075

7176
_hover: {
7277
'.nav-bar-icon': {
@@ -110,7 +115,7 @@ export const NavBarButton = ({
110115
}}
111116
>
112117
<Box className="nav-bar-icon">{buttonType[type].icon}</Box>
113-
<Box className="nav-bar-text">{buttonType[type].text}</Box>
118+
{!isMobile && <Box className="nav-bar-text">{buttonType[type].text}</Box>}
114119
</Box>
115120
)
116121
}

src/organisms/Calendar/Dropdown/CalendarDropdown/CalendarDropdownContainer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const CalendarDropdownContainer = ({
7777
content: '""',
7878
display: isMenuOpen ? 'block' : 'none',
7979
height: '0',
80-
left: '14%',
80+
left: '11%',
8181
position: 'absolute',
8282
top: '30px',
8383
transform: 'translateX(-50%)',
@@ -109,13 +109,13 @@ export const CalendarDropdownContainer = ({
109109
border: 'none',
110110
borderRadius: isMobile ? '0' : '10px',
111111
boxShadow: isMobile ? 'none' : 'rgba(47, 47, 47, 0.2) -1px 6px 40px 0px',
112-
left: isMobile ? 'auto' : '-30px',
112+
left: isMobile ? 'auto' : '34pxpx',
113113
maxHeight: isMobile ? 'calc(100vh - 62px)' : 'auto',
114114
opacity: '1 !important',
115115
overflowY: isMobile ? 'auto' : 'hidden',
116116
padding: '0',
117117
position: 'absolute',
118-
top: isMobile ? '-6px !important' : 'auto',
118+
top: isMobile ? '-6px !important' : '1px',
119119
transform: 'none !important',
120120
transition: 'none !important',
121121
width: isMobile ? '100vw' : '500px',

src/organisms/Calendar/Dropdown/CalendarDropdown/Components/GoToCalendar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export const GoToCalendar = ({ text, onlyToCalendar, onClick }: IGoToCalendar):
1818
onClick={() => onlyToCalendar && onClick && onClick()}
1919
position="relative"
2020
sx={{
21+
background: 'none',
22+
border: '1px transparent',
2123
_hover: {
2224
'.nav-bar-icon': {
2325
bg: hoverBg,

0 commit comments

Comments
 (0)