@graphcommerce/next-ui 11.0.0-canary.50 → 11.0.0-canary.54

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.
@@ -26,6 +26,7 @@ export function BlogListItem(props: BlogListItemProps) {
26
26
  className={classes.item}
27
27
  sx={sxx(
28
28
  (theme) => ({
29
+ position: 'relative',
29
30
  display: 'grid',
30
31
  gridTemplateRows: 'auto auto auto',
31
32
  alignContent: 'start',
@@ -36,25 +37,23 @@ export function BlogListItem(props: BlogListItemProps) {
36
37
  sx,
37
38
  )}
38
39
  >
39
- <Link href={`/${url}`} color='inherit' underline='hover'>
40
- <Box
41
- className={classes.asset}
42
- sx={(theme) => ({
43
- '& img': {
44
- aspectRatio: '3/2',
45
- objectFit: 'cover',
46
- ...breakpointVal(
47
- 'borderRadius',
48
- theme.shape.borderRadius * 2,
49
- theme.shape.borderRadius * 3,
50
- theme.breakpoints.values,
51
- ),
52
- },
53
- })}
54
- >
55
- {asset}
56
- </Box>
57
- </Link>
40
+ <Box
41
+ className={classes.asset}
42
+ sx={(theme) => ({
43
+ '& img': {
44
+ aspectRatio: '3/2',
45
+ objectFit: 'cover',
46
+ ...breakpointVal(
47
+ 'borderRadius',
48
+ theme.shape.borderRadius * 2,
49
+ theme.shape.borderRadius * 3,
50
+ theme.breakpoints.values,
51
+ ),
52
+ },
53
+ })}
54
+ >
55
+ {asset}
56
+ </Box>
58
57
 
59
58
  {date && (
60
59
  <Box
@@ -71,7 +70,13 @@ export function BlogListItem(props: BlogListItemProps) {
71
70
  </Box>
72
71
  )}
73
72
 
74
- <Link href={`/${url}`} className={classes.title} color='inherit' underline='hover'>
73
+ <Link
74
+ href={`/${url}`}
75
+ className={classes.title}
76
+ color='inherit'
77
+ underline='hover'
78
+ sx={{ '&::after': { content: '""', position: 'absolute', inset: 0 } }}
79
+ >
75
80
  <Typography component='h2' variant='h4'>
76
81
  {title}
77
82
  </Typography>
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.0.0-canary.54
4
+
5
+ ## 11.0.0-canary.53
6
+
7
+ ## 11.0.0-canary.52
8
+
9
+ ### Patch Changes
10
+
11
+ - [#2705](https://github.com/graphcommerce-org/graphcommerce/pull/2705) [`eb1f246`](https://github.com/graphcommerce-org/graphcommerce/commit/eb1f2461a54a11ac3950afa1651cb5aea7abb066) - BlogListItem is one tab stop: the title link covers the full card, so keyboard and screen reader users do not get the same link two times. ([@DivaniNL](https://github.com/DivaniNL))
12
+
13
+ ## 11.0.0-canary.51
14
+
3
15
  ## 11.0.0-canary.50
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/next-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "11.0.0-canary.50",
5
+ "version": "11.0.0-canary.54",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -43,13 +43,13 @@
43
43
  "@emotion/react": "^11.14.0",
44
44
  "@emotion/server": "^11.11.0",
45
45
  "@emotion/styled": "^11.14.1",
46
- "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.50",
47
- "@graphcommerce/framer-next-pages": "^11.0.0-canary.50",
48
- "@graphcommerce/framer-scroller": "^11.0.0-canary.50",
49
- "@graphcommerce/framer-utils": "^11.0.0-canary.50",
50
- "@graphcommerce/image": "^11.0.0-canary.50",
51
- "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.50",
52
- "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.50",
46
+ "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.54",
47
+ "@graphcommerce/framer-next-pages": "^11.0.0-canary.54",
48
+ "@graphcommerce/framer-scroller": "^11.0.0-canary.54",
49
+ "@graphcommerce/framer-utils": "^11.0.0-canary.54",
50
+ "@graphcommerce/image": "^11.0.0-canary.54",
51
+ "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.54",
52
+ "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.54",
53
53
  "@lingui/core": "^5",
54
54
  "@lingui/macro": "^5",
55
55
  "@lingui/react": "^5",