cherry-styled-components 0.1.5 → 0.1.7
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.
- package/dist/cherry.js +33 -52
- package/dist/cherry.umd.cjs +33 -52
- package/package.json +1 -1
- package/src/lib/button.tsx +16 -26
- package/src/lib/input.tsx +5 -8
- package/src/lib/range.tsx +7 -9
- package/src/lib/select.tsx +2 -4
- package/src/lib/textarea.tsx +2 -4
- package/src/lib/toggle.tsx +2 -4
package/dist/cherry.js
CHANGED
|
@@ -4960,12 +4960,10 @@ const Un = (t, a, o, n, c, r, h) => V`
|
|
|
4960
4960
|
border: solid 2px ${t.colors.primary};
|
|
4961
4961
|
box-shadow: 0 0 0 0px ${t.colors.primary};
|
|
4962
4962
|
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
${n && `color: ${t.colors.primaryDark}`};
|
|
4968
|
-
}
|
|
4963
|
+
&:hover {
|
|
4964
|
+
background: ${n ? "transparent" : t.colors.primaryDark};
|
|
4965
|
+
border-color: ${t.colors.primaryDark};
|
|
4966
|
+
${n && `color: ${t.colors.primaryDark}`};
|
|
4969
4967
|
}
|
|
4970
4968
|
|
|
4971
4969
|
&:focus {
|
|
@@ -4983,12 +4981,10 @@ const Un = (t, a, o, n, c, r, h) => V`
|
|
|
4983
4981
|
border: solid 2px ${t.colors.secondary};
|
|
4984
4982
|
box-shadow: 0 0 0 0px ${t.colors.secondary};
|
|
4985
4983
|
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
${n && `color: ${t.colors.secondaryDark}`};
|
|
4991
|
-
}
|
|
4984
|
+
&:hover {
|
|
4985
|
+
background: ${n ? "transparent" : t.colors.secondaryDark};
|
|
4986
|
+
border-color: ${t.colors.secondaryDark};
|
|
4987
|
+
${n && `color: ${t.colors.secondaryDark}`};
|
|
4992
4988
|
}
|
|
4993
4989
|
|
|
4994
4990
|
&:focus {
|
|
@@ -5006,12 +5002,10 @@ const Un = (t, a, o, n, c, r, h) => V`
|
|
|
5006
5002
|
border: solid 2px ${t.colors.tertiary};
|
|
5007
5003
|
box-shadow: 0 0 0 0px ${t.colors.tertiary};
|
|
5008
5004
|
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
${n && `color: ${t.colors.tertiaryDark}`};
|
|
5014
|
-
}
|
|
5005
|
+
&:hover {
|
|
5006
|
+
background: ${n ? "transparent" : t.colors.tertiaryDark};
|
|
5007
|
+
border-color: ${t.colors.tertiaryDark};
|
|
5008
|
+
${n && `color: ${t.colors.tertiaryDark}`};
|
|
5015
5009
|
}
|
|
5016
5010
|
|
|
5017
5011
|
&:focus {
|
|
@@ -5029,12 +5023,10 @@ const Un = (t, a, o, n, c, r, h) => V`
|
|
|
5029
5023
|
border: solid 2px ${t.colors.error};
|
|
5030
5024
|
box-shadow: 0 0 0 0px ${t.colors.error};
|
|
5031
5025
|
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
${n && `color: ${j2(0.1, t.colors.error)}`};
|
|
5037
|
-
}
|
|
5026
|
+
&:hover {
|
|
5027
|
+
background: ${n ? "transparent" : j2(0.1, t.colors.error)};
|
|
5028
|
+
border-color: ${j2(0.1, t.colors.error)};
|
|
5029
|
+
${n && `color: ${j2(0.1, t.colors.error)}`};
|
|
5038
5030
|
}
|
|
5039
5031
|
|
|
5040
5032
|
&:focus {
|
|
@@ -21921,10 +21913,8 @@ const Ga1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
21921
21913
|
color: ${({ theme: t }) => t.colors.gray};
|
|
21922
21914
|
}
|
|
21923
21915
|
|
|
21924
|
-
|
|
21925
|
-
|
|
21926
|
-
border-color: ${({ theme: t }) => t.colors.primary};
|
|
21927
|
-
}
|
|
21916
|
+
&:hover:not([disabled]) {
|
|
21917
|
+
border-color: ${({ theme: t }) => t.colors.primary};
|
|
21928
21918
|
}
|
|
21929
21919
|
|
|
21930
21920
|
&:focus:not([disabled]) {
|
|
@@ -21982,14 +21972,13 @@ const Ga1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
21982
21972
|
`, Ka1 = W.input`
|
|
21983
21973
|
${v1};
|
|
21984
21974
|
display: inline-block;
|
|
21975
|
+
background: ${({ theme: t }) => t.colors.light};
|
|
21985
21976
|
border: solid 2px ${({ theme: t }) => t.colors.grayLight};
|
|
21986
21977
|
box-shadow: 0 0 0 0px ${({ theme: t }) => t.colors.primaryLight};
|
|
21987
21978
|
transition: all 0.3s ease;
|
|
21988
21979
|
|
|
21989
|
-
|
|
21990
|
-
|
|
21991
|
-
border-color: ${({ theme: t }) => t.colors.primary};
|
|
21992
|
-
}
|
|
21980
|
+
&:hover:not([disabled]) {
|
|
21981
|
+
border-color: ${({ theme: t }) => t.colors.primary};
|
|
21993
21982
|
}
|
|
21994
21983
|
|
|
21995
21984
|
&:focus:not([disabled]) {
|
|
@@ -22214,15 +22203,13 @@ const Zo1 = J(ao1), oo1 = W.span`
|
|
|
22214
22203
|
transition: all 0.3s ease;
|
|
22215
22204
|
}
|
|
22216
22205
|
|
|
22217
|
-
|
|
22218
|
-
|
|
22219
|
-
|
|
22220
|
-
|
|
22221
|
-
}
|
|
22206
|
+
&:hover:not([disabled]) {
|
|
22207
|
+
&::-webkit-slider-runnable-track {
|
|
22208
|
+
border: solid 2px ${({ theme: t }) => t.colors.primary};
|
|
22209
|
+
}
|
|
22222
22210
|
|
|
22223
|
-
|
|
22224
|
-
|
|
22225
|
-
}
|
|
22211
|
+
&::-moz-range-track {
|
|
22212
|
+
border: solid 2px ${({ theme: t }) => t.colors.primary};
|
|
22226
22213
|
}
|
|
22227
22214
|
}
|
|
22228
22215
|
|
|
@@ -22361,10 +22348,8 @@ const Go1 = J(co1), ro1 = W.select`
|
|
|
22361
22348
|
color: ${({ theme: t }) => t.colors.gray};
|
|
22362
22349
|
}
|
|
22363
22350
|
|
|
22364
|
-
|
|
22365
|
-
|
|
22366
|
-
border-color: ${({ theme: t }) => t.colors.primary};
|
|
22367
|
-
}
|
|
22351
|
+
&:hover:not([disabled]) {
|
|
22352
|
+
border-color: ${({ theme: t }) => t.colors.primary};
|
|
22368
22353
|
}
|
|
22369
22354
|
|
|
22370
22355
|
&:focus:not([disabled]) {
|
|
@@ -22475,10 +22460,8 @@ const Yo1 = J(yo1), po1 = W.textarea`
|
|
|
22475
22460
|
color: ${({ theme: t }) => t.colors.gray};
|
|
22476
22461
|
}
|
|
22477
22462
|
|
|
22478
|
-
|
|
22479
|
-
|
|
22480
|
-
border-color: ${({ theme: t }) => t.colors.primary};
|
|
22481
|
-
}
|
|
22463
|
+
&:hover:not([disabled]) {
|
|
22464
|
+
border-color: ${({ theme: t }) => t.colors.primary};
|
|
22482
22465
|
}
|
|
22483
22466
|
|
|
22484
22467
|
&:focus:not([disabled]) {
|
|
@@ -22595,10 +22578,8 @@ const Ko1 = J(ko1), lo1 = W.span`
|
|
|
22595
22578
|
}
|
|
22596
22579
|
}
|
|
22597
22580
|
|
|
22598
|
-
|
|
22599
|
-
|
|
22600
|
-
border-color: ${({ theme: t }) => t.colors.primary};
|
|
22601
|
-
}
|
|
22581
|
+
&:hover:not([disabled]) ~ .fake-toggle {
|
|
22582
|
+
border-color: ${({ theme: t }) => t.colors.primary};
|
|
22602
22583
|
}
|
|
22603
22584
|
|
|
22604
22585
|
&:focus:not([disabled]) ~ .fake-toggle {
|
package/dist/cherry.umd.cjs
CHANGED
|
@@ -545,12 +545,10 @@ To pass a single animation please supply them in simple values, e.g. animation('
|
|
|
545
545
|
border: solid 2px ${t.colors.primary};
|
|
546
546
|
box-shadow: 0 0 0 0px ${t.colors.primary};
|
|
547
547
|
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
${n&&`color: ${t.colors.primaryDark}`};
|
|
553
|
-
}
|
|
548
|
+
&:hover {
|
|
549
|
+
background: ${n?"transparent":t.colors.primaryDark};
|
|
550
|
+
border-color: ${t.colors.primaryDark};
|
|
551
|
+
${n&&`color: ${t.colors.primaryDark}`};
|
|
554
552
|
}
|
|
555
553
|
|
|
556
554
|
&:focus {
|
|
@@ -568,12 +566,10 @@ To pass a single animation please supply them in simple values, e.g. animation('
|
|
|
568
566
|
border: solid 2px ${t.colors.secondary};
|
|
569
567
|
box-shadow: 0 0 0 0px ${t.colors.secondary};
|
|
570
568
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
${n&&`color: ${t.colors.secondaryDark}`};
|
|
576
|
-
}
|
|
569
|
+
&:hover {
|
|
570
|
+
background: ${n?"transparent":t.colors.secondaryDark};
|
|
571
|
+
border-color: ${t.colors.secondaryDark};
|
|
572
|
+
${n&&`color: ${t.colors.secondaryDark}`};
|
|
577
573
|
}
|
|
578
574
|
|
|
579
575
|
&:focus {
|
|
@@ -591,12 +587,10 @@ To pass a single animation please supply them in simple values, e.g. animation('
|
|
|
591
587
|
border: solid 2px ${t.colors.tertiary};
|
|
592
588
|
box-shadow: 0 0 0 0px ${t.colors.tertiary};
|
|
593
589
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
${n&&`color: ${t.colors.tertiaryDark}`};
|
|
599
|
-
}
|
|
590
|
+
&:hover {
|
|
591
|
+
background: ${n?"transparent":t.colors.tertiaryDark};
|
|
592
|
+
border-color: ${t.colors.tertiaryDark};
|
|
593
|
+
${n&&`color: ${t.colors.tertiaryDark}`};
|
|
600
594
|
}
|
|
601
595
|
|
|
602
596
|
&:focus {
|
|
@@ -614,12 +608,10 @@ To pass a single animation please supply them in simple values, e.g. animation('
|
|
|
614
608
|
border: solid 2px ${t.colors.error};
|
|
615
609
|
box-shadow: 0 0 0 0px ${t.colors.error};
|
|
616
610
|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
${n&&`color: ${at(.1,t.colors.error)}`};
|
|
622
|
-
}
|
|
611
|
+
&:hover {
|
|
612
|
+
background: ${n?"transparent":at(.1,t.colors.error)};
|
|
613
|
+
border-color: ${at(.1,t.colors.error)};
|
|
614
|
+
${n&&`color: ${at(.1,t.colors.error)}`};
|
|
623
615
|
}
|
|
624
616
|
|
|
625
617
|
&:focus {
|
|
@@ -826,10 +818,8 @@ To pass a single animation please supply them in simple values, e.g. animation('
|
|
|
826
818
|
color: ${({theme:t})=>t.colors.gray};
|
|
827
819
|
}
|
|
828
820
|
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
border-color: ${({theme:t})=>t.colors.primary};
|
|
832
|
-
}
|
|
821
|
+
&:hover:not([disabled]) {
|
|
822
|
+
border-color: ${({theme:t})=>t.colors.primary};
|
|
833
823
|
}
|
|
834
824
|
|
|
835
825
|
&:focus:not([disabled]) {
|
|
@@ -883,14 +873,13 @@ To pass a single animation please supply them in simple values, e.g. animation('
|
|
|
883
873
|
`,xq=Z.input`
|
|
884
874
|
${l1};
|
|
885
875
|
display: inline-block;
|
|
876
|
+
background: ${({theme:t})=>t.colors.light};
|
|
886
877
|
border: solid 2px ${({theme:t})=>t.colors.grayLight};
|
|
887
878
|
box-shadow: 0 0 0 0px ${({theme:t})=>t.colors.primaryLight};
|
|
888
879
|
transition: all 0.3s ease;
|
|
889
880
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
border-color: ${({theme:t})=>t.colors.primary};
|
|
893
|
-
}
|
|
881
|
+
&:hover:not([disabled]) {
|
|
882
|
+
border-color: ${({theme:t})=>t.colors.primary};
|
|
894
883
|
}
|
|
895
884
|
|
|
896
885
|
&:focus:not([disabled]) {
|
|
@@ -1048,15 +1037,13 @@ To pass a single animation please supply them in simple values, e.g. animation('
|
|
|
1048
1037
|
transition: all 0.3s ease;
|
|
1049
1038
|
}
|
|
1050
1039
|
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
}
|
|
1040
|
+
&:hover:not([disabled]) {
|
|
1041
|
+
&::-webkit-slider-runnable-track {
|
|
1042
|
+
border: solid 2px ${({theme:t})=>t.colors.primary};
|
|
1043
|
+
}
|
|
1056
1044
|
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
}
|
|
1045
|
+
&::-moz-range-track {
|
|
1046
|
+
border: solid 2px ${({theme:t})=>t.colors.primary};
|
|
1060
1047
|
}
|
|
1061
1048
|
}
|
|
1062
1049
|
|
|
@@ -1181,10 +1168,8 @@ To pass a single animation please supply them in simple values, e.g. animation('
|
|
|
1181
1168
|
color: ${({theme:t})=>t.colors.gray};
|
|
1182
1169
|
}
|
|
1183
1170
|
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
border-color: ${({theme:t})=>t.colors.primary};
|
|
1187
|
-
}
|
|
1171
|
+
&:hover:not([disabled]) {
|
|
1172
|
+
border-color: ${({theme:t})=>t.colors.primary};
|
|
1188
1173
|
}
|
|
1189
1174
|
|
|
1190
1175
|
&:focus:not([disabled]) {
|
|
@@ -1262,10 +1247,8 @@ To pass a single animation please supply them in simple values, e.g. animation('
|
|
|
1262
1247
|
color: ${({theme:t})=>t.colors.gray};
|
|
1263
1248
|
}
|
|
1264
1249
|
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
border-color: ${({theme:t})=>t.colors.primary};
|
|
1268
|
-
}
|
|
1250
|
+
&:hover:not([disabled]) {
|
|
1251
|
+
border-color: ${({theme:t})=>t.colors.primary};
|
|
1269
1252
|
}
|
|
1270
1253
|
|
|
1271
1254
|
&:focus:not([disabled]) {
|
|
@@ -1359,10 +1342,8 @@ To pass a single animation please supply them in simple values, e.g. animation('
|
|
|
1359
1342
|
}
|
|
1360
1343
|
}
|
|
1361
1344
|
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
border-color: ${({theme:t})=>t.colors.primary};
|
|
1365
|
-
}
|
|
1345
|
+
&:hover:not([disabled]) ~ .fake-toggle {
|
|
1346
|
+
border-color: ${({theme:t})=>t.colors.primary};
|
|
1366
1347
|
}
|
|
1367
1348
|
|
|
1368
1349
|
&:focus:not([disabled]) ~ .fake-toggle {
|
package/package.json
CHANGED
package/src/lib/button.tsx
CHANGED
|
@@ -57,12 +57,10 @@ export const buttonStyles = (
|
|
|
57
57
|
border: solid 2px ${theme.colors.primary};
|
|
58
58
|
box-shadow: 0 0 0 0px ${theme.colors.primary};
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
${$outline && `color: ${theme.colors.primaryDark}`};
|
|
65
|
-
}
|
|
60
|
+
&:hover {
|
|
61
|
+
background: ${$outline ? "transparent" : theme.colors.primaryDark};
|
|
62
|
+
border-color: ${theme.colors.primaryDark};
|
|
63
|
+
${$outline && `color: ${theme.colors.primaryDark}`};
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
&:focus {
|
|
@@ -82,12 +80,10 @@ export const buttonStyles = (
|
|
|
82
80
|
border: solid 2px ${theme.colors.secondary};
|
|
83
81
|
box-shadow: 0 0 0 0px ${theme.colors.secondary};
|
|
84
82
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
${$outline && `color: ${theme.colors.secondaryDark}`};
|
|
90
|
-
}
|
|
83
|
+
&:hover {
|
|
84
|
+
background: ${$outline ? "transparent" : theme.colors.secondaryDark};
|
|
85
|
+
border-color: ${theme.colors.secondaryDark};
|
|
86
|
+
${$outline && `color: ${theme.colors.secondaryDark}`};
|
|
91
87
|
}
|
|
92
88
|
|
|
93
89
|
&:focus {
|
|
@@ -107,12 +103,10 @@ export const buttonStyles = (
|
|
|
107
103
|
border: solid 2px ${theme.colors.tertiary};
|
|
108
104
|
box-shadow: 0 0 0 0px ${theme.colors.tertiary};
|
|
109
105
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
${$outline && `color: ${theme.colors.tertiaryDark}`};
|
|
115
|
-
}
|
|
106
|
+
&:hover {
|
|
107
|
+
background: ${$outline ? "transparent" : theme.colors.tertiaryDark};
|
|
108
|
+
border-color: ${theme.colors.tertiaryDark};
|
|
109
|
+
${$outline && `color: ${theme.colors.tertiaryDark}`};
|
|
116
110
|
}
|
|
117
111
|
|
|
118
112
|
&:focus {
|
|
@@ -132,14 +126,10 @@ export const buttonStyles = (
|
|
|
132
126
|
border: solid 2px ${theme.colors.error};
|
|
133
127
|
box-shadow: 0 0 0 0px ${theme.colors.error};
|
|
134
128
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
: darken(0.1, theme.colors.error)};
|
|
140
|
-
border-color: ${darken(0.1, theme.colors.error)};
|
|
141
|
-
${$outline && `color: ${darken(0.1, theme.colors.error)}`};
|
|
142
|
-
}
|
|
129
|
+
&:hover {
|
|
130
|
+
background: ${$outline ? "transparent" : darken(0.1, theme.colors.error)};
|
|
131
|
+
border-color: ${darken(0.1, theme.colors.error)};
|
|
132
|
+
${$outline && `color: ${darken(0.1, theme.colors.error)}`};
|
|
143
133
|
}
|
|
144
134
|
|
|
145
135
|
&:focus {
|
package/src/lib/input.tsx
CHANGED
|
@@ -160,10 +160,8 @@ const StyledInput = styled.input<InputProps>`
|
|
|
160
160
|
color: ${({ theme }) => theme.colors.gray};
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
border-color: ${({ theme }) => theme.colors.primary};
|
|
166
|
-
}
|
|
163
|
+
&:hover:not([disabled]) {
|
|
164
|
+
border-color: ${({ theme }) => theme.colors.primary};
|
|
167
165
|
}
|
|
168
166
|
|
|
169
167
|
&:focus:not([disabled]) {
|
|
@@ -232,14 +230,13 @@ const StyledIconWrapper = styled.span<InputProps>`
|
|
|
232
230
|
const StyledRadioCheckboxInput = styled.input<InputProps>`
|
|
233
231
|
${resetButton};
|
|
234
232
|
display: inline-block;
|
|
233
|
+
background: ${({ theme }) => theme.colors.light};
|
|
235
234
|
border: solid 2px ${({ theme }) => theme.colors.grayLight};
|
|
236
235
|
box-shadow: 0 0 0 0px ${({ theme }) => theme.colors.primaryLight};
|
|
237
236
|
transition: all 0.3s ease;
|
|
238
237
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
border-color: ${({ theme }) => theme.colors.primary};
|
|
242
|
-
}
|
|
238
|
+
&:hover:not([disabled]) {
|
|
239
|
+
border-color: ${({ theme }) => theme.colors.primary};
|
|
243
240
|
}
|
|
244
241
|
|
|
245
242
|
&:focus:not([disabled]) {
|
package/src/lib/range.tsx
CHANGED
|
@@ -89,15 +89,13 @@ const StyledInput = styled.input<InputProps>`
|
|
|
89
89
|
transition: all 0.3s ease;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
border: solid 2px ${({ theme }) => theme.colors.primary};
|
|
100
|
-
}
|
|
92
|
+
&:hover:not([disabled]) {
|
|
93
|
+
&::-webkit-slider-runnable-track {
|
|
94
|
+
border: solid 2px ${({ theme }) => theme.colors.primary};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&::-moz-range-track {
|
|
98
|
+
border: solid 2px ${({ theme }) => theme.colors.primary};
|
|
101
99
|
}
|
|
102
100
|
}
|
|
103
101
|
|
package/src/lib/select.tsx
CHANGED
|
@@ -43,10 +43,8 @@ const StyledSelect = styled.select<SelectProps>`
|
|
|
43
43
|
color: ${({ theme }) => theme.colors.gray};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
border-color: ${({ theme }) => theme.colors.primary};
|
|
49
|
-
}
|
|
46
|
+
&:hover:not([disabled]) {
|
|
47
|
+
border-color: ${({ theme }) => theme.colors.primary};
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
&:focus:not([disabled]) {
|
package/src/lib/textarea.tsx
CHANGED
|
@@ -46,10 +46,8 @@ const StyledTextarea = styled.textarea<TextareaProps>`
|
|
|
46
46
|
color: ${({ theme }) => theme.colors.gray};
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
border-color: ${({ theme }) => theme.colors.primary};
|
|
52
|
-
}
|
|
49
|
+
&:hover:not([disabled]) {
|
|
50
|
+
border-color: ${({ theme }) => theme.colors.primary};
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
&:focus:not([disabled]) {
|
package/src/lib/toggle.tsx
CHANGED
|
@@ -94,10 +94,8 @@ const StyledToggle = styled.input<ToggleProps>`
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
border-color: ${({ theme }) => theme.colors.primary};
|
|
100
|
-
}
|
|
97
|
+
&:hover:not([disabled]) ~ .fake-toggle {
|
|
98
|
+
border-color: ${({ theme }) => theme.colors.primary};
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
&:focus:not([disabled]) ~ .fake-toggle {
|