Skip to content

Commit 2482d89

Browse files
authored
feat(YfmTableControls): update plus button styles (#848)
1 parent 196f9f6 commit 2482d89

File tree

1 file changed

+12
-7
lines changed
  • src/extensions/yfm/YfmTable/plugins/YfmTableControls/components/FloatingPlusButton

1 file changed

+12
-7
lines changed

src/extensions/yfm/YfmTable/plugins/YfmTableControls/components/FloatingPlusButton/PlusButton.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)