-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(EditorView): changed default selection styles #520
feat(EditorView): changed default selection styles #520
Conversation
Preview is ready. |
f3b5c46
to
e3db0bc
Compare
// TODO: CHANGE TO TOKEN | ||
$default-selection-background: #e6e6e6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs semantic css token before merging
e3db0bc
to
0ae5e41
Compare
'--g-selection-bg-color': { | ||
control: {type: 'text'}, | ||
description: 'Editor selection bg color', | ||
}, | ||
'--g-selection-border': { | ||
control: {type: 'text'}, | ||
description: 'Editor selection border', | ||
}, | ||
'--g-selection-border-radius': { | ||
control: {type: 'text'}, | ||
description: 'Editor selection border radius', | ||
}, | ||
'--g-selection-outline': { | ||
control: {type: 'text'}, | ||
description: 'Editor selection outline', | ||
}, | ||
'--g-selection-background': { | ||
control: {type: 'text'}, | ||
description: 'Editor selection background', | ||
}, | ||
'--g-selection-box-shadow': { | ||
control: {type: 'text'}, | ||
description: 'Editor selection box-shadow', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change css-vars to --g-md-wysiwyg-selection-*
control: {type: 'text'}, | ||
description: 'Editor selection outline', | ||
}, | ||
'--g-selection-background': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--g-selection-bg-color
and --g-selection-background
– are these duplicate variables?
d5ffabc
to
d4179c1
Compare
1acd755
to
c2ba786
Compare
300657a
to
70f1fcf
Compare
4c9ec08
to
c2106f2
Compare
c2106f2
to
0f513ac
Compare
Change default selection styles;
Add css variables for customization.