Commit 6fda689 1 parent 85f7e08 commit 6fda689 Copy full SHA for 6fda689
File tree 3 files changed +19
-1
lines changed
3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 11
11
'--ci-border-radius': rounded || borderRadius ? borderRadius ?? '5px' : undefined,
12
12
'--ci-color-primary': primaryColor,
13
13
'--ci-color-secondary': secondaryColor,
14
- '--ci-text-color-active': textColorActive ?? secondaryColor
14
+ '--ci-text-color-active': textColorActive ?? secondaryColor,
15
+ '--ci-background': backgroundColor,
16
+ '--ci-background-active': backgroundColorActive
15
17
}"
16
18
>
17
19
<slot >
Original file line number Diff line number Diff line change 9
9
--ci-text-color : var (--ci-color-primary );
10
10
--ci-font-size : 30px ;
11
11
--ci-font-family : ' Anton' , sans-serif ;
12
+ --ci-background : transparent ;
13
+ --ci-background-active : transparent ;
12
14
--ci-gap : 10px ;
13
15
& .disabled {
14
16
opacity : 0.5 ;
79
81
box-sizing : border-box ;
80
82
appearance : initial ;
81
83
-webkit-appearance : initial ;
84
+ background-color : var (--ci-background );
82
85
& :focus {
83
86
outline : none ;
84
87
color : var (--ci-text-color-active );
85
88
caret-color : var (--ci-text-color-active );
89
+ background-color : var (--ci-background-active );
86
90
}
87
91
}
88
92
& .border-b {
Original file line number Diff line number Diff line change @@ -70,6 +70,18 @@ export interface OtpInputType {
70
70
* @default #000
71
71
*/
72
72
textColorActive ?: string | undefined
73
+ /**
74
+ * Sets the background color for the input boxes
75
+ *
76
+ * @default transparent
77
+ */
78
+ backgroundColor ?: string | undefined
79
+ /**
80
+ * Sets the background color for the focused input box
81
+ *
82
+ * @default transparent
83
+ */
84
+ backgroundColorActive ?: string | undefined
73
85
/**
74
86
* The position of the component
75
87
* [
You can’t perform that action at this time.
0 commit comments