@@ -18,7 +18,7 @@ export function gradientBorderGenerator(): void {
18
18
const showRadiusInput = utils . showRadius ;
19
19
const hideRadiusInput = utils . hideRadius ;
20
20
const resultPage = utils . getResultPage ( ) ;
21
-
21
+
22
22
resultPage . style . display = 'flex' ;
23
23
24
24
getCheckboxElement . addEventListener ( 'change' , ( e : Event ) : void => {
@@ -30,6 +30,14 @@ export function gradientBorderGenerator(): void {
30
30
}
31
31
} ) ;
32
32
33
+ utils . getCheckbox ( attribute ) . addEventListener ( 'change' , ( ) => {
34
+ if ( utils . getCheckbox ( attribute ) . checked ) {
35
+ utils . getRadiusInput ( attribute ) . value = getBorderRadiusInput . value ;
36
+ } else {
37
+ utils . getRadiusInput ( attribute ) . value = '0' ;
38
+ }
39
+ } ) ;
40
+
33
41
const values : Values = {
34
42
firstColor : color1 . value ,
35
43
secondColor : color2 . value ,
@@ -71,7 +79,10 @@ function getGradientBorderResult(
71
79
72
80
outputElement . style . backgroundColor = 'transparent' ;
73
81
outputElement . style . visibility = 'visible' ;
82
+
74
83
utils . getCheckbox ( attribute ) . checked = false ;
84
+ utils . hideRadius ( attribute ) ;
85
+ utils . getRadiusInput ( attribute ) . value = '0' ;
75
86
76
87
const getCodeButtonElement = utils . getCopyCodeButton ( attribute ) ;
77
88
getCodeButtonElement . addEventListener ( 'click' , ( ) => {
0 commit comments