We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eaf9ff commit b15f504Copy full SHA for b15f504
src/theme.ts
@@ -4,13 +4,16 @@ import type { DeepPartial } from "ts-essentials"
4
import type { ChakraStylesConfig } from "chakra-react-select"
5
import type { SelectOption } from "./types"
6
7
-type CSSObjectWithActiveStep = CSSObject & { _activeStep: CSSObject }
8
-
9
const StepsComponent: typeof StepsTheme = {
10
...StepsTheme,
11
baseStyle: (props: any) => {
+ const navigationEnabled = !!props.onClickStep
12
return {
13
...StepsTheme.baseStyle(props),
+ stepContainer: {
14
+ ...StepsTheme.baseStyle(props).stepContainer,
15
+ cursor: navigationEnabled ? "pointer" : "initial",
16
+ },
17
label: {
18
...StepsTheme.baseStyle(props).label,
19
color: "textColor",
0 commit comments