File tree Expand file tree Collapse file tree 8 files changed +11
-4
lines changed Expand file tree Collapse file tree 8 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const typeStyle = typeColor
32
32
{ !! buttons ?.length && (
33
33
<div class = " flex xs wrap justify-center" >
34
34
{ buttons ?.map (button => (
35
- <Button { ... button } >
35
+ <Button { ... button } icon = { null } >
36
36
{ button .icon && (
37
37
<Fragment >
38
38
{ button .icon .startsWith (' <svg' )
Original file line number Diff line number Diff line change 26
26
{#if buttons ?.length }
27
27
<div class =" flex xs wrap justify-center" >
28
28
{#each buttons as button }
29
- <Button {...button }>
29
+ <Button {...button } icon ={ null } >
30
30
{#if button .icon }
31
31
{@html button .icon }
32
32
{/if }
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const ErrorPage = ({
30
30
< Button
31
31
{ ...button }
32
32
key = { index }
33
+ icon = { null }
33
34
dangerouslySetInnerHTML = { { __html : button . icon
34
35
? `${ button . icon } ${ button . text } `
35
36
: button . text
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ const classes = [
43
43
{ !! buttons ?.length && (
44
44
<div class :list = { [styles .cta , ' flex xs wrap' ]} >
45
45
{ buttons ?.map (button => (
46
- <Button { ... button } >
46
+ <Button { ... button } icon = { null } >
47
47
{ button .icon && (
48
48
<Fragment >
49
49
{ button .icon .startsWith (' <svg' )
Original file line number Diff line number Diff line change 39
39
{#if buttons ?.length }
40
40
<div class ={classNames ([styles .cta , ' flex xs wrap' ])}>
41
41
{#each buttons as button }
42
- <Button {...button }>
42
+ <Button {...button } icon ={ null } >
43
43
{#if button .icon }
44
44
{@html button .icon }
45
45
{/if }
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ const Hero = ({
41
41
< Button
42
42
{ ...button }
43
43
key = { index }
44
+ icon = { null }
44
45
dangerouslySetInnerHTML = { { __html : button . icon
45
46
? `${ button . icon } ${ button . text } `
46
47
: button . text
Original file line number Diff line number Diff line change 89
89
@include background (alert- accent);
90
90
}
91
91
}
92
+
93
+ svg {
94
+ pointer-events : none ;
95
+ }
92
96
}
Original file line number Diff line number Diff line change 1
1
export type ConditionalWrapperProps = {
2
2
condition : boolean
3
+ [ key : string ] : any
3
4
}
4
5
5
6
export type ReactConditionalWrapperProps = {
You can’t perform that action at this time.
0 commit comments