@graphcommerce/next-ui 3.13.1 → 3.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -323,12 +323,13 @@ export default function AppShellHeader(props: AppShellHeaderProps) {
323
323
  type='button'
324
324
  classes={{ root: classes.fab }}
325
325
  onClick={() => router.go(closeSteps * -1)}
326
+ aria-label='Close'
326
327
  >
327
328
  <SvgImageSimple src={iconClose} />
328
329
  </Fab>
329
330
  ) : (
330
331
  <PageLink href='/' passHref>
331
- <Fab size='small' classes={{ root: classes.fab }}>
332
+ <Fab size='small' classes={{ root: classes.fab }} aria-label='Close'>
332
333
  <SvgImageSimple src={iconClose} />
333
334
  </Fab>
334
335
  </PageLink>
@@ -345,6 +346,7 @@ export default function AppShellHeader(props: AppShellHeaderProps) {
345
346
  size='small'
346
347
  className={classes.backButton}
347
348
  startIcon={backIcon}
349
+ aria-label='Back'
348
350
  >
349
351
  {historyOnClick ? up?.title : 'Back'}
350
352
  </Button>
@@ -353,7 +355,12 @@ export default function AppShellHeader(props: AppShellHeaderProps) {
353
355
  if (!canClickBack && up?.href) {
354
356
  back = (
355
357
  <PageLink href={up?.href} passHref>
356
- <Button variant='pill-link' className={classes.backButton} startIcon={backIcon}>
358
+ <Button
359
+ variant='pill-link'
360
+ className={classes.backButton}
361
+ startIcon={backIcon}
362
+ aria-label='Back'
363
+ >
357
364
  {up?.title ?? 'Back'}
358
365
  </Button>
359
366
  </PageLink>
package/AppShell/Logo.tsx CHANGED
@@ -44,7 +44,7 @@ export default function Logo(props: LogoProps) {
44
44
 
45
45
  return (
46
46
  <PageLink href={href ?? '/'} passHref>
47
- <a className={classes.link}>
47
+ <a className={classes.link} aria-label='Logo'>
48
48
  <Image
49
49
  {...{ ...image }}
50
50
  className={clsx(classes.logo, !alwaysShow && classes.logoHideOnMobile)}
@@ -20,7 +20,7 @@ export default function PlaceholderFab(props: PlaceholderFabProps) {
20
20
  const classes = useStyles(props)
21
21
 
22
22
  return (
23
- <Fab className={classes.placeholderCartFab} size='large' {...fabProps}>
23
+ <Fab className={classes.placeholderCartFab} size='large' {...fabProps} aria-label='Placeholder'>
24
24
  <></>
25
25
  </Fab>
26
26
  )
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.13.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.13.1...@graphcommerce/next-ui@3.13.2) (2021-11-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * various accessibility improvements ([47481a9](https://github.com/ho-nl/m2-pwa/commit/47481a9a882ba87968de6dd797557b0b275d75fb))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.13.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.13.0...@graphcommerce/next-ui@3.13.1) (2021-11-03)
7
18
 
8
19
 
@@ -19,7 +19,7 @@ export default function FlagAvatar(props: FlagAvatarProps) {
19
19
  {...avatarProps}
20
20
  classes={classes}
21
21
  imgProps={{ loading: 'lazy' }}
22
- alt=''
22
+ alt={country}
23
23
  src={`https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.3/flags/4x3/${country}.svg`}
24
24
  >
25
25
  {country.toLocaleUpperCase()}
@@ -261,7 +261,12 @@ export default function SidebarGallery(props: SidebarGalleryProps) {
261
261
  ))}
262
262
  </Scroller>
263
263
  <m.div layout className={classes.topRight}>
264
- <Fab size='small' className={classes.toggleIcon} onMouseUp={toggle}>
264
+ <Fab
265
+ size='small'
266
+ className={classes.toggleIcon}
267
+ onMouseUp={toggle}
268
+ aria-label='Toggle Fullscreen'
269
+ >
265
270
  {!zoomed ? (
266
271
  <SvgImageSimple src={iconFullscreen} />
267
272
  ) : (
@@ -66,13 +66,13 @@ export default function Pagination(props: PagePaginationProps) {
66
66
  const nextBtnProps = items[items.length - 1]
67
67
 
68
68
  const chevronLeft = (
69
- <Fab size='medium' disabled={page === 1} color='inherit'>
69
+ <Fab size='medium' disabled={page === 1} color='inherit' aria-label='Previous page'>
70
70
  <SvgImageSimple src={iconChevronLeft} />
71
71
  </Fab>
72
72
  )
73
73
 
74
74
  const chevronRight = (
75
- <Fab size='medium' disabled={page === count} color='inherit'>
75
+ <Fab size='medium' disabled={page === count} color='inherit' aria-label='Next page'>
76
76
  <SvgImageSimple src={iconChevronRight} />
77
77
  </Fab>
78
78
  )
@@ -33,7 +33,7 @@ export default function ContentLinks(props: ContentLinksProps) {
33
33
  <Container className={classes.root} maxWidth={false}>
34
34
  <ScrollerProvider scrollSnapAlign='none'>
35
35
  <Scroller className={classes.scroller} hideScrollbar>
36
- <Typography variant='body1' component='h4' className={classes.title}>
36
+ <Typography variant='body1' component='h3' className={classes.title}>
37
37
  {title}
38
38
  </Typography>
39
39
  {children}
@@ -177,12 +177,7 @@ export default function MessageSnackbarImpl(props: MessageSnackbarImplProps) {
177
177
  {action}
178
178
  </div>
179
179
  )}
180
- <Fab
181
- className={classes.close}
182
- aria-label='Close snackbar'
183
- size='small'
184
- onClick={hideSnackbar}
185
- >
180
+ <Fab className={classes.close} aria-label='Close' size='small' onClick={hideSnackbar}>
186
181
  <SvgImageSimple src={iconClose} />
187
182
  </Fab>
188
183
  </>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.13.1",
3
+ "version": "3.13.2",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@apollo/client": "^3.4.16",
13
13
  "@graphcommerce/framer-next-pages": "^2.107.3",
14
- "@graphcommerce/framer-scroller": "^1.0.1",
14
+ "@graphcommerce/framer-scroller": "^1.0.2",
15
15
  "@graphcommerce/framer-sheet": "^2.105.15",
16
16
  "@graphcommerce/framer-utils": "^2.103.13",
17
17
  "@graphcommerce/graphql": "^2.105.3",
@@ -53,5 +53,5 @@
53
53
  "project": "./tsconfig.json"
54
54
  }
55
55
  },
56
- "gitHead": "c9eac9065491268d26c187d9fe864f7e9232c0fb"
56
+ "gitHead": "db0c7ff1a81b75e4e6eeee3717a1fc608d9c3c86"
57
57
  }