Commit 666adac 1 parent 8f8ff8d commit 666adac Copy full SHA for 666adac
File tree 8 files changed +75
-7
lines changed
8 files changed +75
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const RoleDescriptions = () => {
34
34
< button
35
35
onClick = { ( ) => setRole ( application ) }
36
36
aria-label = { `Show ${ application } questions` }
37
- className = "flex flex-col items-center gap-7"
37
+ className = "application-role-tab flex flex-col items-center gap-7"
38
38
key = { application }
39
39
>
40
40
< h3
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const Navbar: React.FC = () => {
59
59
< div className = "hidden !justify-self-end w-fit lg:inline-flex flex-row" >
60
60
{ navbarItems . map ( ( item ) => (
61
61
< a
62
- className = { `hover:underline cursor-pointer text-white p-4 underline-offset-8 decoration-2 decoration-white ${
62
+ className = { `hover:underline cursor-pointer text-white p-4 underline-offset-8 decoration-2 decoration-white h-[48px] flex items-center ${
63
63
pathname === item . url ? 'underline' : ''
64
64
} `}
65
65
href = { item . url }
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ const MemberDisplay: React.FC = () => {
76
76
setSelectedMember ( undefined ) ;
77
77
} }
78
78
aria-label = { `select ${ role . altText } role` }
79
+ className = "custom-focus-state"
79
80
>
80
81
< Icon
81
82
icon = { `${ role . src } _base.svg` }
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ export const MemberDetails: React.FC<MemberDetailsProps> = (props: MemberDetails
207
207
</ div >
208
208
< button
209
209
onClick = { props . onClose }
210
- className = "cursor-pointer h-min"
210
+ className = "cursor-pointer h-min rounded-md "
211
211
aria-label = "Close member details"
212
212
>
213
213
< Image src = "/icons/close.svg" width = { 23 } height = { 23 } alt = "" className = "m-2 xs:w-4" />
@@ -317,7 +317,7 @@ const MemberGroup: React.FC<MemberGroupProps> = ({
317
317
< >
318
318
< button
319
319
onClick = { ( ) => onMemberCardClick ( member ) }
320
- className = "memberCard"
320
+ className = "memberCard custom-focus-state "
321
321
aria-label = { `open ${ member . firstName } ${ member . lastName } 's details` }
322
322
>
323
323
< MemberCard
@@ -354,7 +354,7 @@ const MemberGroup: React.FC<MemberGroupProps> = ({
354
354
< >
355
355
< button
356
356
onClick = { ( ) => onMemberCardClick ( member ) }
357
- className = "memberCard"
357
+ className = "memberCard custom-focus-state "
358
358
aria-label = { `open ${ member . firstName } ${ member . lastName } 's details` }
359
359
>
360
360
< MemberCard
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ const TeamHero = () => {
199
199
} `}
200
200
>
201
201
< button
202
- className = "relative z-10"
202
+ className = "relative z-10 custom-focus-state team-carousel-button "
203
203
onClick = { ( ) =>
204
204
setModalShown ( index === carouselIndex && width >= TABLET_BREAKPOINT )
205
205
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { cva } from 'class-variance-authority';
6
6
import { cn } from '../../lib/utils' ;
7
7
8
8
const buttonVariants = cva (
9
- 'inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50' ,
9
+ 'inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors disabled:pointer-events-none disabled:opacity-50' ,
10
10
{
11
11
variants : {
12
12
variant : {
Original file line number Diff line number Diff line change 186
186
background-color : # d63d3d ;
187
187
}
188
188
189
+ .primary-button : focus-visible ,
190
+ .secondary-button--red : focus-visible {
191
+ outline : 3px solid # d63d3d !important ;
192
+ outline-offset : 3px ;
193
+ border-radius : 12px ;
194
+ }
195
+
189
196
.secondary-button {
190
197
color : # fefefe ;
191
198
background-color : black;
218
225
background-color : # d63d3d ;
219
226
}
220
227
228
+ .secondary-button : focus-visible {
229
+ outline : 3px solid # fefefe ;
230
+ outline-offset : 3px ;
231
+ border-radius : 12px ;
232
+ }
233
+
234
+ a : focus-visible {
235
+ outline : 3px solid # d63d3d ;
236
+ outline-offset : 3px ;
237
+ border-radius : 4px ;
238
+ }
239
+
240
+ button : focus-visible ,
241
+ summary : focus-visible {
242
+ outline : 3px solid # d63d3d ;
243
+ outline-offset : 3px ;
244
+ transition : outline 0s ;
245
+ }
246
+
221
247
summary {
248
+ border-radius : 8px ;
222
249
padding-top : 1rem ;
223
250
padding-bottom : 1rem ;
224
251
list-style : none;
@@ -240,3 +267,42 @@ summary::after {
240
267
details [open ] > summary ::after {
241
268
rotate : 180deg ;
242
269
}
270
+
271
+ .custom-focus-state : focus-visible {
272
+ outline : none;
273
+ position : relative;
274
+ }
275
+
276
+ .custom-focus-state : focus-visible ::after {
277
+ content : '' ;
278
+ width : calc (100% + 75px );
279
+ height : 123px ;
280
+ top : -50px ;
281
+ left : -37px ;
282
+ border-radius : 8px ;
283
+ position : absolute;
284
+ outline : 3px solid # d63d3d ;
285
+ }
286
+
287
+ .memberCard : focus-visible ::after {
288
+ width : 100% ;
289
+ height : 100% ;
290
+ top : 0 ;
291
+ left : 0 ;
292
+ border-radius : 8px ;
293
+ }
294
+
295
+ .application-role-tab {
296
+ border-radius : 8px ;
297
+ }
298
+
299
+ .team-carousel-button {
300
+ position : static;
301
+ }
302
+
303
+ .team-carousel-button : focus-visible ::after {
304
+ height : 317px ;
305
+ width : calc (100% + 26px );
306
+ left : -13px ;
307
+ border-radius : 16px ;
308
+ }
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ const Home: React.FC = () => {
100
100
< div className = "flex xs:justify-center lg:justify-normal items-center gap-2 z-10 lg:min-h-[100px] xs:min-h-[45px] scale-75 lg:scale-100" >
101
101
{ icons . map ( ( icon , index ) => (
102
102
< button
103
+ className = "rounded-md"
103
104
onClick = { ( ) => {
104
105
setSelectedIcon ( index ) ;
105
106
if ( timer ) clearTimeout ( timer ) ;
You can’t perform that action at this time.
0 commit comments