@primer/components 31.2.1-rc.48ecca6e → 31.2.1-rc.7fa29a87

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.
@@ -231,67 +231,13 @@ export declare function render(component: React.ReactElement, theme?: {
231
231
  gradientOut: string;
232
232
  };
233
233
  mktg: {
234
- success: string;
235
- info: string;
236
- bgShadeGradient: {
237
- top: string;
238
- bottom: string;
239
- };
240
234
  btn: {
241
- bg: {
242
- top: string;
243
- bottom: string;
244
- };
245
- bgOverlay: {
246
- top: string;
247
- bottom: string;
248
- };
249
- text: string;
250
- primary: {
251
- bg: {
252
- top: string;
253
- bottom: string;
254
- };
255
- bgOverlay: {
256
- top: string;
257
- bottom: string;
258
- };
259
- text: string;
260
- };
261
- enterprise: {
262
- bg: {
263
- top: string;
264
- bottom: string;
265
- };
266
- bgOverlay: {
267
- top: string;
268
- bottom: string;
269
- };
270
- text: string;
271
- };
272
- outline: {
273
- text: string;
274
- border: string;
275
- hover: {
276
- text: string;
277
- border: string;
278
- };
279
- focus: {
280
- border: string;
281
- borderInset: string;
282
- };
283
- };
284
- dark: {
285
- text: string;
286
- border: string;
287
- hover: {
288
- text: string;
289
- border: string;
290
- };
291
- focus: {
292
- border: string;
293
- borderInset: string;
294
- };
235
+ bg: string;
236
+ shadow: {
237
+ outline: string;
238
+ focus: string;
239
+ hover: string;
240
+ hoverMuted: string;
295
241
  };
296
242
  };
297
243
  };
package/package-lock.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@primer/octicons-react": "^16.1.0",
13
- "@primer/primitives": "6.1.0",
13
+ "@primer/primitives": "7.0.1",
14
14
  "@radix-ui/react-polymorphic": "0.0.14",
15
15
  "@react-aria/ssr": "3.1.0",
16
16
  "@styled-system/css": "5.1.5",
@@ -7561,9 +7561,9 @@
7561
7561
  }
7562
7562
  },
7563
7563
  "node_modules/@primer/primitives": {
7564
- "version": "6.1.0",
7565
- "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-6.1.0.tgz",
7566
- "integrity": "sha512-gwSVf5rVf2CMa/bU3/47LZosDHNfODMRJfKi7uJOqHWABVNl6Lf+thDM7Jb8tS9sEQQsUnrLDiGNjCScS81IXA=="
7564
+ "version": "7.0.1",
7565
+ "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-7.0.1.tgz",
7566
+ "integrity": "sha512-Ddmi5Fuck3nsHt1+uvZiVzLwtjNrBloWq8FfQz74Qd9TXKxvHxrGxQuEJ21T3PxJMMwwEsKo7fk18oy1rTmFiA=="
7567
7567
  },
7568
7568
  "node_modules/@radix-ui/react-polymorphic": {
7569
7569
  "version": "0.0.14",
@@ -43351,9 +43351,9 @@
43351
43351
  "requires": {}
43352
43352
  },
43353
43353
  "@primer/primitives": {
43354
- "version": "6.1.0",
43355
- "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-6.1.0.tgz",
43356
- "integrity": "sha512-gwSVf5rVf2CMa/bU3/47LZosDHNfODMRJfKi7uJOqHWABVNl6Lf+thDM7Jb8tS9sEQQsUnrLDiGNjCScS81IXA=="
43354
+ "version": "7.0.1",
43355
+ "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-7.0.1.tgz",
43356
+ "integrity": "sha512-Ddmi5Fuck3nsHt1+uvZiVzLwtjNrBloWq8FfQz74Qd9TXKxvHxrGxQuEJ21T3PxJMMwwEsKo7fk18oy1rTmFiA=="
43357
43357
  },
43358
43358
  "@radix-ui/react-polymorphic": {
43359
43359
  "version": "0.0.14",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "31.2.1-rc.48ecca6e",
3
+ "version": "31.2.1-rc.7fa29a87",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -45,7 +45,7 @@
45
45
  "license": "MIT",
46
46
  "dependencies": {
47
47
  "@primer/octicons-react": "^16.1.0",
48
- "@primer/primitives": "6.1.0",
48
+ "@primer/primitives": "7.0.1",
49
49
  "@radix-ui/react-polymorphic": "0.0.14",
50
50
  "@react-aria/ssr": "3.1.0",
51
51
  "@styled-system/css": "5.1.5",
@@ -7,7 +7,7 @@ import {ItemInput} from './List'
7
7
  import styled from 'styled-components'
8
8
  import {StyledHeader} from './Header'
9
9
  import {StyledDivider} from './Divider'
10
- import {useColorSchemeVar, useTheme} from '../ThemeProvider'
10
+ import {useTheme} from '../ThemeProvider'
11
11
  import {
12
12
  activeDescendantActivatedDirectly,
13
13
  activeDescendantActivatedIndirectly,
@@ -17,36 +17,6 @@ import {useSSRSafeId} from '@react-aria/ssr'
17
17
  import {ForwardRefComponent as PolymorphicForwardRefComponent} from '@radix-ui/react-polymorphic'
18
18
  import {AriaRole} from '../utils/types'
19
19
 
20
- /**
21
- * These colors are not yet in our default theme. Need to remove this once they are added.
22
- */
23
- const customItemThemes = {
24
- default: {
25
- hover: {
26
- light: 'rgba(46, 77, 108, 0.06)',
27
- dark: 'rgba(201, 206, 212, 0.12)',
28
- dark_dimmed: 'rgba(201, 206, 212, 0.12)'
29
- },
30
- focus: {
31
- light: 'rgba(54, 77, 100, 0.16)',
32
- dark: 'rgba(201, 206, 212, 0.24)',
33
- dark_dimmed: 'rgba(201, 206, 212, 0.24)'
34
- }
35
- },
36
- danger: {
37
- hover: {
38
- light: 'rgba(234, 74, 90, 0.08)',
39
- dark: 'rgba(248, 81, 73, 0.16)',
40
- dark_dimmed: 'rgba(248, 81, 73, 0.16)'
41
- },
42
- focus: {
43
- light: 'rgba(234, 74, 90, 0.14)',
44
- dark: 'rgba(248, 81, 73, 0.24)',
45
- dark_dimmed: 'rgba(248, 81, 73, 0.24)'
46
- }
47
- }
48
- } as const
49
-
50
20
  /**
51
21
  * Contract for props passed to the `Item` component.
52
22
  */
@@ -166,14 +136,19 @@ const getItemVariant = (variant = 'default', disabled?: boolean) => {
166
136
  color: get('colors.danger.fg'),
167
137
  iconColor: get('colors.danger.fg'),
168
138
  annotationColor: get('colors.fg.muted'),
169
- hoverCursor: 'pointer'
139
+ hoverCursor: 'pointer',
140
+ hoverBg: get('colors.actionListItem.danger.hoverBg'),
141
+ focusBg: get('colors.actionListItem.danger.activeBg'),
142
+ hoverText: get('colors.actionListItem.danger.hoverText')
170
143
  }
171
144
  default:
172
145
  return {
173
146
  color: get('colors.fg.default'),
174
147
  iconColor: get('colors.fg.muted'),
175
148
  annotationColor: get('colors.fg.muted'),
176
- hoverCursor: 'pointer'
149
+ hoverCursor: 'pointer',
150
+ hoverBg: get('colors.actionListItem.default.hoverBg'),
151
+ focusBg: get('colors.actionListItem.default.activeBg')
177
152
  }
178
153
  }
179
154
  }
@@ -200,8 +175,6 @@ const StyledItem = styled.div<
200
175
  variant: ItemProps['variant']
201
176
  showDivider: ItemProps['showDivider']
202
177
  item?: ItemInput
203
- hoverBackground: string
204
- focusBackground: string
205
178
  } & SxProp
206
179
  >`
207
180
  /* 6px vertical padding + 20px line height = 32px total height
@@ -220,7 +193,11 @@ const StyledItem = styled.div<
220
193
  @media (hover: hover) and (pointer: fine) {
221
194
  :hover {
222
195
  // allow override in case another item in the list is active/focused
223
- background: var(--item-hover-bg-override, ${({hoverBackground}) => hoverBackground});
196
+ background: var(
197
+ --item-hover-bg-override,
198
+ ${({variant, item}) => getItemVariant(variant, item?.disabled).hoverBg}
199
+ );
200
+ color: ${({variant, item}) => getItemVariant(variant, item?.disabled).hoverText};
224
201
  cursor: ${({variant, item}) => getItemVariant(variant, item?.disabled).hoverCursor};
225
202
  }
226
203
  }
@@ -266,19 +243,19 @@ const StyledItem = styled.div<
266
243
 
267
244
  // Active Descendant
268
245
  &[${isActiveDescendantAttribute}='${activeDescendantActivatedDirectly}'] {
269
- background: ${({focusBackground}) => focusBackground};
246
+ background: ${({variant, item}) => getItemVariant(variant, item?.disabled).focusBg};
270
247
  }
271
248
  &[${isActiveDescendantAttribute}='${activeDescendantActivatedIndirectly}'] {
272
- background: ${({hoverBackground}) => hoverBackground};
249
+ background: ${({variant, item}) => getItemVariant(variant, item?.disabled).hoverBg};
273
250
  }
274
251
 
275
252
  &:focus {
276
- background: ${({focusBackground}) => focusBackground};
253
+ background: ${({variant, item}) => getItemVariant(variant, item?.disabled).focusBg};
277
254
  outline: none;
278
255
  }
279
256
 
280
257
  &:active {
281
- background: ${({focusBackground}) => focusBackground};
258
+ background: ${({variant, item}) => getItemVariant(variant, item?.disabled).focusBg};
282
259
  }
283
260
 
284
261
  ${sx}
@@ -404,10 +381,6 @@ export const Item = React.forwardRef((itemProps, ref) => {
404
381
  [onAction, disabled, itemProps, onClick]
405
382
  )
406
383
 
407
- const customItemTheme = customItemThemes[variant]
408
- const hoverBackground = useColorSchemeVar(customItemTheme.hover, 'inherit')
409
- const focusBackground = useColorSchemeVar(customItemTheme.focus, 'inherit')
410
-
411
384
  const {theme} = useTheme()
412
385
 
413
386
  return (
@@ -424,8 +397,6 @@ export const Item = React.forwardRef((itemProps, ref) => {
424
397
  data-id={id}
425
398
  onKeyPress={keyPressHandler}
426
399
  onClick={clickHandler}
427
- hoverBackground={disabled ? 'inherit' : hoverBackground}
428
- focusBackground={disabled ? 'inherit' : focusBackground}
429
400
  >
430
401
  {!!selected === selected && (
431
402
  <BaseVisualContainer>
@@ -5,6 +5,8 @@ import sx, {merge, SxProp} from '../sx'
5
5
  import {useTheme, Theme} from '../ThemeProvider'
6
6
  import {VariantType, ButtonProps} from './types'
7
7
 
8
+ const TEXT_ROW_HEIGHT = '20px' // custom value off the scale
9
+
8
10
  const getVariantStyles = (variant: VariantType = 'default', theme?: Theme) => {
9
11
  const style = {
10
12
  default: {
@@ -130,7 +132,7 @@ const getVariantStyles = (variant: VariantType = 'default', theme?: Theme) => {
130
132
  boxShadow: `${theme?.shadows.btn.outline.focusShadow}`
131
133
  },
132
134
 
133
- '&:active': {
135
+ '&:active:not([disabled])': {
134
136
  color: 'btn.outline.selectedText',
135
137
  backgroundColor: 'btn.outline.selectedBg',
136
138
  boxShadow: `${theme?.shadows.btn.outline.selectedShadow}`,
@@ -191,86 +193,88 @@ const getSizeStyles = (size = 'medium', variant: VariantType = 'default', iconOn
191
193
 
192
194
  const ButtonBase = styled.button<SxProp>(sx)
193
195
 
194
- const Button = forwardRef<HTMLButtonElement, ButtonProps>(({children, ...props}, forwardedRef): JSX.Element => {
195
- const {
196
- icon: Icon,
197
- leadingIcon: LeadingIcon,
198
- trailingIcon: TrailingIcon,
199
- variant = 'default',
200
- size = 'medium',
201
- sx: sxProp = {}
202
- } = props
203
- const iconOnly = !!Icon
204
- const TEXT_ROW_HEIGHT = '20px' // custom value off the scale
205
- const {theme} = useTheme()
196
+ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
197
+ ({children, sx: sxProp = {}, ...props}, forwardedRef): JSX.Element => {
198
+ const {
199
+ icon: Icon,
200
+ leadingIcon: LeadingIcon,
201
+ trailingIcon: TrailingIcon,
202
+ variant = 'default',
203
+ size = 'medium'
204
+ } = props
205
+ const iconOnly = !!Icon
206
+ const {theme} = useTheme()
206
207
 
207
- const styles = {
208
- borderRadius: '2',
209
- border: '1px solid',
210
- borderColor: theme?.colors.btn.border,
211
- display: 'grid',
212
- gridTemplateAreas: '"leadingIcon text trailingIcon"',
213
- fontWeight: 'bold',
214
- lineHeight: TEXT_ROW_HEIGHT,
215
- whiteSpace: 'nowrap',
216
- verticalAlign: 'middle',
217
- cursor: 'pointer',
218
- appearance: 'none',
219
- userSelect: 'none',
220
- textDecoration: 'none',
221
- textAlign: 'center',
222
- '& > :not(:last-child)': {
223
- mr: '2'
224
- },
225
- '&:focus': {
226
- outline: 'none'
227
- },
228
- '&:disabled': {
229
- cursor: 'default'
230
- },
231
- '&:disabled svg': {
232
- opacity: '0.6'
233
- },
234
- '[data-component="leadingIcon"]': {
235
- gridArea: 'leadingIcon'
236
- },
237
- '[data-component="text"]': {
238
- gridArea: 'text'
239
- },
240
- '[data-component="trailingIcon"]': {
241
- gridArea: 'trailingIcon'
208
+ const styles = {
209
+ borderRadius: '2',
210
+ border: '1px solid',
211
+ borderColor: theme?.colors.btn.border,
212
+ display: 'grid',
213
+ gridTemplateAreas: '"leadingIcon text trailingIcon"',
214
+ fontWeight: 'bold',
215
+ lineHeight: TEXT_ROW_HEIGHT,
216
+ whiteSpace: 'nowrap',
217
+ verticalAlign: 'middle',
218
+ cursor: 'pointer',
219
+ appearance: 'none',
220
+ userSelect: 'none',
221
+ textDecoration: 'none',
222
+ textAlign: 'center',
223
+ '& > :not(:last-child)': {
224
+ mr: '2'
225
+ },
226
+ '&:focus': {
227
+ outline: 'none'
228
+ },
229
+ '&:disabled': {
230
+ cursor: 'default'
231
+ },
232
+ '&:disabled svg': {
233
+ opacity: '0.6'
234
+ },
235
+ '[data-component="leadingIcon"]': {
236
+ gridArea: 'leadingIcon'
237
+ },
238
+ '[data-component="text"]': {
239
+ gridArea: 'text'
240
+ },
241
+ '[data-component="trailingIcon"]': {
242
+ gridArea: 'trailingIcon'
243
+ }
242
244
  }
245
+ const iconWrapStyles = {
246
+ display: 'inline-block'
247
+ }
248
+ const sxStyles = merge.all([
249
+ styles,
250
+ getSizeStyles(size, variant, iconOnly),
251
+ getVariantStyles(variant, theme),
252
+ sxProp as SxProp
253
+ ])
254
+ return (
255
+ <ButtonBase sx={sxStyles} ref={forwardedRef} {...props}>
256
+ {LeadingIcon && (
257
+ <Box as="span" data-component="leadingIcon" sx={iconWrapStyles} aria-hidden={!iconOnly}>
258
+ <LeadingIcon />
259
+ </Box>
260
+ )}
261
+ <span data-component="text" hidden={Icon ? true : false}>
262
+ {children}
263
+ </span>
264
+ {Icon && (
265
+ <Box data-component="icon-only" as="span" sx={{display: 'inline-block'}} aria-hidden={!iconOnly}>
266
+ <Icon />
267
+ </Box>
268
+ )}
269
+ {TrailingIcon && (
270
+ <Box as="span" data-component="trailingIcon" sx={{...iconWrapStyles, ml: 2}} aria-hidden={!iconOnly}>
271
+ <TrailingIcon />
272
+ </Box>
273
+ )}
274
+ </ButtonBase>
275
+ )
243
276
  }
244
- const variableStyles = {...getSizeStyles(size, variant, iconOnly), ...getVariantStyles(variant, theme)}
245
- const componentStyles = {...styles, ...variableStyles}
246
- const iconWrapStyles = {
247
- display: 'inline-block'
248
- }
249
- return (
250
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
251
- // @ts-ignore Why wont it accept the sx prop?
252
- <ButtonBase sx={merge(componentStyles, sxProp as SxProp)} ref={forwardedRef} {...props}>
253
- {LeadingIcon && (
254
- <Box as="span" data-component="leadingIcon" sx={iconWrapStyles} aria-hidden={!iconOnly}>
255
- <LeadingIcon />
256
- </Box>
257
- )}
258
- <span data-component="text" hidden={Icon ? true : undefined}>
259
- {children}
260
- </span>
261
- {Icon && (
262
- <Box data-component="icon-only" as="span" sx={{display: 'inline-block'}} aria-hidden={!iconOnly}>
263
- <Icon />
264
- </Box>
265
- )}
266
- {TrailingIcon && (
267
- <Box as="span" data-component="trailingIcon" sx={{...iconWrapStyles, ml: 2}} aria-hidden={!iconOnly}>
268
- <TrailingIcon />
269
- </Box>
270
- )}
271
- </ButtonBase>
272
- )
273
- })
277
+ )
274
278
 
275
279
  Button.displayName = 'Button'
276
280
 
@@ -178,25 +178,25 @@ exports[`ActionList.Item renders consistently 1`] = `
178
178
  }
179
179
 
180
180
  .c1[data-is-active-descendant='activated-directly'] {
181
- background: rgba(54,77,100,0.16);
181
+ background: rgba(208,215,222,0.48);
182
182
  }
183
183
 
184
184
  .c1[data-is-active-descendant='activated-indirectly'] {
185
- background: rgba(46,77,108,0.06);
185
+ background: rgba(208,215,222,0.32);
186
186
  }
187
187
 
188
188
  .c1:focus {
189
- background: rgba(54,77,100,0.16);
189
+ background: rgba(208,215,222,0.48);
190
190
  outline: none;
191
191
  }
192
192
 
193
193
  .c1:active {
194
- background: rgba(54,77,100,0.16);
194
+ background: rgba(208,215,222,0.48);
195
195
  }
196
196
 
197
197
  @media (hover:hover) and (pointer:fine) {
198
198
  .c1:hover {
199
- background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
199
+ background: var( --item-hover-bg-override,rgba(208,215,222,0.32) );
200
200
  cursor: pointer;
201
201
  }
202
202
  }
@@ -436,20 +436,20 @@ Array [
436
436
  }
437
437
 
438
438
  .c4[data-is-active-descendant='activated-directly'] {
439
- background: rgba(54,77,100,0.16);
439
+ background: rgba(208,215,222,0.48);
440
440
  }
441
441
 
442
442
  .c4[data-is-active-descendant='activated-indirectly'] {
443
- background: rgba(46,77,108,0.06);
443
+ background: rgba(208,215,222,0.32);
444
444
  }
445
445
 
446
446
  .c4:focus {
447
- background: rgba(54,77,100,0.16);
447
+ background: rgba(208,215,222,0.48);
448
448
  outline: none;
449
449
  }
450
450
 
451
451
  .c4:active {
452
- background: rgba(54,77,100,0.16);
452
+ background: rgba(208,215,222,0.48);
453
453
  }
454
454
 
455
455
  .c5 {
@@ -530,7 +530,7 @@ Array [
530
530
 
531
531
  @media (hover:hover) and (pointer:fine) {
532
532
  .c4:hover {
533
- background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
533
+ background: var( --item-hover-bg-override,rgba(208,215,222,0.32) );
534
534
  cursor: pointer;
535
535
  }
536
536
  }
@@ -1343,20 +1343,20 @@ Array [
1343
1343
  }
1344
1344
 
1345
1345
  .c4[data-is-active-descendant='activated-directly'] {
1346
- background: rgba(54,77,100,0.16);
1346
+ background: rgba(208,215,222,0.48);
1347
1347
  }
1348
1348
 
1349
1349
  .c4[data-is-active-descendant='activated-indirectly'] {
1350
- background: rgba(46,77,108,0.06);
1350
+ background: rgba(208,215,222,0.32);
1351
1351
  }
1352
1352
 
1353
1353
  .c4:focus {
1354
- background: rgba(54,77,100,0.16);
1354
+ background: rgba(208,215,222,0.48);
1355
1355
  outline: none;
1356
1356
  }
1357
1357
 
1358
1358
  .c4:active {
1359
- background: rgba(54,77,100,0.16);
1359
+ background: rgba(208,215,222,0.48);
1360
1360
  }
1361
1361
 
1362
1362
  .c5 {
@@ -1400,7 +1400,7 @@ Array [
1400
1400
 
1401
1401
  @media (hover:hover) and (pointer:fine) {
1402
1402
  .c4:hover {
1403
- background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
1403
+ background: var( --item-hover-bg-override,rgba(208,215,222,0.32) );
1404
1404
  cursor: pointer;
1405
1405
  }
1406
1406
  }
@@ -2160,20 +2160,20 @@ Array [
2160
2160
  }
2161
2161
 
2162
2162
  .c4[data-is-active-descendant='activated-directly'] {
2163
- background: rgba(54,77,100,0.16);
2163
+ background: rgba(208,215,222,0.48);
2164
2164
  }
2165
2165
 
2166
2166
  .c4[data-is-active-descendant='activated-indirectly'] {
2167
- background: rgba(46,77,108,0.06);
2167
+ background: rgba(208,215,222,0.32);
2168
2168
  }
2169
2169
 
2170
2170
  .c4:focus {
2171
- background: rgba(54,77,100,0.16);
2171
+ background: rgba(208,215,222,0.48);
2172
2172
  outline: none;
2173
2173
  }
2174
2174
 
2175
2175
  .c4:active {
2176
- background: rgba(54,77,100,0.16);
2176
+ background: rgba(208,215,222,0.48);
2177
2177
  }
2178
2178
 
2179
2179
  .c5 {
@@ -2227,7 +2227,7 @@ Array [
2227
2227
 
2228
2228
  @media (hover:hover) and (pointer:fine) {
2229
2229
  .c4:hover {
2230
- background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
2230
+ background: var( --item-hover-bg-override,rgba(208,215,222,0.32) );
2231
2231
  cursor: pointer;
2232
2232
  }
2233
2233
  }
@@ -2987,20 +2987,20 @@ Array [
2987
2987
  }
2988
2988
 
2989
2989
  .c4[data-is-active-descendant='activated-directly'] {
2990
- background: rgba(54,77,100,0.16);
2990
+ background: rgba(208,215,222,0.48);
2991
2991
  }
2992
2992
 
2993
2993
  .c4[data-is-active-descendant='activated-indirectly'] {
2994
- background: rgba(46,77,108,0.06);
2994
+ background: rgba(208,215,222,0.32);
2995
2995
  }
2996
2996
 
2997
2997
  .c4:focus {
2998
- background: rgba(54,77,100,0.16);
2998
+ background: rgba(208,215,222,0.48);
2999
2999
  outline: none;
3000
3000
  }
3001
3001
 
3002
3002
  .c4:active {
3003
- background: rgba(54,77,100,0.16);
3003
+ background: rgba(208,215,222,0.48);
3004
3004
  }
3005
3005
 
3006
3006
  .c1 {
@@ -3016,7 +3016,7 @@ Array [
3016
3016
 
3017
3017
  @media (hover:hover) and (pointer:fine) {
3018
3018
  .c4:hover {
3019
- background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
3019
+ background: var( --item-hover-bg-override,rgba(208,215,222,0.32) );
3020
3020
  cursor: pointer;
3021
3021
  }
3022
3022
  }
@@ -3430,20 +3430,20 @@ Array [
3430
3430
  }
3431
3431
 
3432
3432
  .c4[data-is-active-descendant='activated-directly'] {
3433
- background: rgba(54,77,100,0.16);
3433
+ background: rgba(208,215,222,0.48);
3434
3434
  }
3435
3435
 
3436
3436
  .c4[data-is-active-descendant='activated-indirectly'] {
3437
- background: rgba(46,77,108,0.06);
3437
+ background: rgba(208,215,222,0.32);
3438
3438
  }
3439
3439
 
3440
3440
  .c4:focus {
3441
- background: rgba(54,77,100,0.16);
3441
+ background: rgba(208,215,222,0.48);
3442
3442
  outline: none;
3443
3443
  }
3444
3444
 
3445
3445
  .c4:active {
3446
- background: rgba(54,77,100,0.16);
3446
+ background: rgba(208,215,222,0.48);
3447
3447
  }
3448
3448
 
3449
3449
  .c1 {
@@ -3459,7 +3459,7 @@ Array [
3459
3459
 
3460
3460
  @media (hover:hover) and (pointer:fine) {
3461
3461
  .c4:hover {
3462
- background: var(--item-hover-bg-override,rgba(46,77,108,0.06));
3462
+ background: var( --item-hover-bg-override,rgba(208,215,222,0.32) );
3463
3463
  cursor: pointer;
3464
3464
  }
3465
3465
  }
@@ -41,6 +41,7 @@ exports[`Button renders consistently 1`] = `
41
41
  }
42
42
 
43
43
  .c0:disabled {
44
+ cursor: default;
44
45
  color: #8c959f;
45
46
  background-color: btn.disabledBg;
46
47
  }
@@ -83,6 +84,7 @@ exports[`Button renders consistently 1`] = `
83
84
  >
84
85
  <span
85
86
  data-component="text"
87
+ hidden={false}
86
88
  />
87
89
  </button>
88
90
  `;
@@ -128,6 +130,7 @@ exports[`Button respects the "disabled" prop 1`] = `
128
130
  }
129
131
 
130
132
  .c0:disabled {
133
+ cursor: default;
131
134
  color: #8c959f;
132
135
  background-color: btn.disabledBg;
133
136
  }
@@ -171,6 +174,7 @@ exports[`Button respects the "disabled" prop 1`] = `
171
174
  >
172
175
  <span
173
176
  data-component="text"
177
+ hidden={false}
174
178
  >
175
179
  Disabled
176
180
  </span>
@@ -222,6 +226,7 @@ exports[`Button styles icon only button to make it a square 1`] = `
222
226
  }
223
227
 
224
228
  .c0:disabled {
229
+ cursor: default;
225
230
  color: #8c959f;
226
231
  background-color: btn.disabledBg;
227
232
  }