Skip to content

Commit ca89f6f

Browse files
committed
Update the migration guide
1 parent aa795e5 commit ca89f6f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/migration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ consider additional positioning prop support on a case-by-case basis.
197197
- Utility function `getColor` has been refactored with a signature that supports
198198
v9 light/dark modes. Replace usage with `getColorV8` until custom components can
199199
be upgraded to utilize the new `getColor` function.
200+
- Utility functions `getFocusBoxShadow` and `focusStyles` no longer take `hue`,
201+
`shade`, `spacerHue`, or `spacerShade` parameters. Use the `color` or
202+
`shadeColor` parameters instead. The new object parameters take the shape of
203+
refactored `getColor`.
200204
- Utility function `getDocument` has been removed. Use `useDocument` instead.
201205
- Utility function `isRtl` has been removed. Use `props.theme.rtl` instead.
202206
- The following exports have changed:

packages/buttons/src/styled/StyledButton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ const groupStyles = (props: IButtonProps & ThemeProps<DefaultTheme>) => {
223223
getFocusBoxShadow({
224224
theme,
225225
inset: focusInset,
226-
spacerColor: { hue: 'primaryHue', shade: 700 },
226+
spacerColor: { hue: focusColor },
227227
color: { hue: 'transparent' }
228228
});
229229

0 commit comments

Comments
 (0)