Skip to content

Commit 8606bf3

Browse files
fix(PDYE-1297): cambio classnames (#730)
Co-authored-by: Javiera Munita <javiera.munita@eclass.cl>
1 parent 3ec1ae3 commit 8606bf3

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

src/molecules/NavBarButtons/NavBarButton.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,31 +62,32 @@ export const NavBarButton = ({
6262
id={isAccessibility ? 'UserWayButton' : ''}
6363
onClick={isAccessibility ? triggerWidget : onClick}
6464
sx={{
65+
cursor: 'pointer',
6566
display: 'flex',
6667
gap: '8px',
6768
h: '30px',
6869
maxH: '30px',
6970

7071
_hover: {
71-
'.icon': {
72+
'.nav-bar-icon': {
7273
bg: hoverBg,
7374
},
74-
'.text': {
75+
'.nav-bar-text': {
7576
color: vars('colors-neutral-white'),
7677
},
7778
},
7879

7980
_active: {
80-
'.icon': {
81+
'.nav-bar-icon': {
8182
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
8283
bg: onlyLink || isAccessibility ? hoverBg : activeBg,
8384
},
84-
'.text': {
85+
'.nav-bar-text': {
8586
color: vars('colors-neutral-white'),
8687
},
8788
},
8889

89-
'.icon': {
90+
'.nav-bar-icon': {
9091
alignItems: 'center',
9192
bg: vars('colors-main-blueGrey'),
9293
borderRadius: '100%',
@@ -99,19 +100,17 @@ export const NavBarButton = ({
99100
width: '30px',
100101
},
101102

102-
'.text': {
103+
'.nav-bar-text': {
103104
alignContent: 'center',
105+
color: vars('colors-neutral-silverSand'),
104106
fontSize: '12px',
105107
fontWeight: '500',
106-
forntFamily: 'Roboto',
107-
color: vars('colors-neutral-silverSand'),
108+
fontFamily: 'Roboto',
108109
},
109110
}}
110111
>
111-
<Box className="icon">{buttonType[type].icon}</Box>
112-
<Box as="span" className="text">
113-
{buttonType[type].text}
114-
</Box>
112+
<Box className="nav-bar-icon">{buttonType[type].icon}</Box>
113+
<Box className="nav-bar-text">{buttonType[type].text}</Box>
115114
</Box>
116115
)
117116
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ export const GoToCalendar = ({ text, onlyToCalendar, onClick }: IGoToCalendar):
1919
position="relative"
2020
sx={{
2121
_hover: {
22-
'.icon': {
22+
'.nav-bar-icon': {
2323
bg: hoverBg,
2424
},
25-
'.text': {
25+
'.nav-bar-text': {
2626
color: vars('colors-neutral-white'),
2727
},
2828
},
2929

3030
_active: {
31-
'.icon': {
31+
'.nav-bar-icon': {
3232
bg: onlyToCalendar ? hoverBg : activeBg,
3333
},
34-
'.text': {
34+
'.nav-bar-text': {
3535
color: vars('colors-neutral-white'),
3636
},
3737
},

0 commit comments

Comments
 (0)