File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
src/extensions/yfm/YfmTable/plugins/YfmTableControls/components/FloatingPlusButton Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,18 @@ export const PlusButton: React.FC<PlusButtonProps> = function YfmTablePlusButton
3838 pin = "circle-circle"
3939 view = { hovered ? 'outlined-action' : 'normal' }
4040 onClick = { onClick }
41- style = { {
42- '--g-button-height' : hovered ? undefined : '4px' ,
43- '--_--background-color-hover' : hovered
44- ? 'var(--g-color-base-background)'
45- : undefined ,
46- color : hovered ? undefined : 'var(--g-color-base-generic)' ,
47- } }
41+ style = {
42+ hovered
43+ ? {
44+ '--g-button-background-color-hover' : 'var(--g-color-base-background)' ,
45+ }
46+ : {
47+ color : 'transparent' ,
48+ '--g-button-height' : '4px' ,
49+ '--g-button-background-color' : 'var(--g-color-line-generic-accent)' ,
50+ '--g-button-border-color' : 'var(--g-color-line-generic-accent)' ,
51+ }
52+ }
4853 >
4954 < Icon data = { PlusIcon } />
5055 </ Button >
You can’t perform that action at this time.
0 commit comments