Skip to content

Commit 3e1d2e2

Browse files
authored
feat(EditorView): add sticky toolbar border variable (#499)
1 parent 9eb6464 commit 3e1d2e2

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

demo/stories/css-variables/CSSVariables.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export const Story: StoryObj<typeof component> = {
2020
control: {type: 'text'},
2121
description: 'Toolbar padding in sticky mode',
2222
},
23+
'--g-md-toolbar-sticky-border': {
24+
control: {type: 'text'},
25+
description: 'Toolbar border in sticky mode',
26+
},
2327
'--g-md-editor-padding': {
2428
control: {type: 'text'},
2529
description: 'Editor contents padding',

docs/how-to-customize-the-editor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ You can use CSS variables to make editor contents fit your own needs
99
| `--g-md-toolbar-sticky-padding` | Toolbar padding in sticky mode | padding | -4px |
1010
| `--g-md-toolbar-sticky-inset` | Toolbar inset in sticky mode | inset | -4px |
1111
| `--g-md-toolbar-sticky-offset` | Toolbar offset in sticky mode | top | 0px |
12+
| `--g-md-toolbar-sticky-border` | Toolbar border in sticky mode | border | 1px solid var(--g-color-line-generic-solid) |
1213
| `--g-md-editor-padding` | Editor contents padding | padding | 0px |

src/bundle/sticky/sticky.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $block: 'g-md-editor-sticky';
2323

2424
content: '';
2525

26-
border: 1px solid var(--g-color-line-generic-solid);
26+
border: var(--g-md-toolbar-sticky-border, 1px solid var(--g-color-line-generic-solid));
2727
border-radius: 4px;
2828
background-color: var(--g-color-base-background);
2929
}

0 commit comments

Comments
 (0)