File tree 2 files changed +27
-23
lines changed
src/components/page/theming 2 files changed +27
-23
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import styles from './index.module.scss';
5
5
6
6
function CodeColor ( { color, ...props } ) : JSX . Element {
7
7
return (
8
- < div className = { clsx ( styles . codeColor , props . className , 'code-color' ) } >
8
+ < span className = { clsx ( styles . codeColor , props . className , 'code-color' ) } >
9
9
< span
10
10
className = { styles . codeColorBlock }
11
11
style = { {
@@ -14,7 +14,7 @@ function CodeColor({ color, ...props }): JSX.Element {
14
14
} }
15
15
/>
16
16
{ props . children && < code className = { styles . codeColorValue } > { props . children } </ code > }
17
- </ div >
17
+ </ span >
18
18
) ;
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -83,28 +83,32 @@ export default function LayeredColorsSelect({ ...props }) {
83
83
</ InputWrapper >
84
84
</ div >
85
85
< table >
86
- < tr >
87
- < th > Name</ th >
88
- < th > Property</ th >
89
- < th > Default Value</ th >
90
- < th > Description</ th >
91
- </ tr >
92
- { variations . map ( ( variation ) => {
93
- const codeColor = variation . rgb ? `rgb(${ variation . value } )` : `${ variation . value } ` ;
86
+ < thead >
87
+ < tr >
88
+ < th > Name</ th >
89
+ < th > Property</ th >
90
+ < th > Default Value</ th >
91
+ < th > Description</ th >
92
+ </ tr >
93
+ </ thead >
94
+ < tbody >
95
+ { variations . map ( ( variation ) => {
96
+ const codeColor = variation . rgb ? `rgb(${ variation . value } )` : `${ variation . value } ` ;
94
97
95
- return (
96
- < tr key = { variation . name } >
97
- < td className = { styles . colorName } > { variation . name } </ td >
98
- < td className = { styles . colorProperty } >
99
- < code > { variation . property } </ code >
100
- </ td >
101
- < td className = { styles . colorValue } >
102
- < CodeColor color = { codeColor } > { variation . value } </ CodeColor >
103
- </ td >
104
- < td className = { styles . colorDescription } > { variation . description } </ td >
105
- </ tr >
106
- ) ;
107
- } ) }
98
+ return (
99
+ < tr key = { variation . name } >
100
+ < td className = { styles . colorName } > { variation . name } </ td >
101
+ < td className = { styles . colorProperty } >
102
+ < code > { variation . property } </ code >
103
+ </ td >
104
+ < td className = { styles . colorValue } >
105
+ < CodeColor color = { codeColor } > { variation . value } </ CodeColor >
106
+ </ td >
107
+ < td className = { styles . colorDescription } > { variation . description } </ td >
108
+ </ tr >
109
+ ) ;
110
+ } ) }
111
+ </ tbody >
108
112
</ table >
109
113
</ div >
110
114
) ;
You can’t perform that action at this time.
0 commit comments