Skip to content
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

Conversation

whiteformed
Copy link
Collaborator

Change default selection styles;
Add css variables for customization.

@whiteformed whiteformed changed the title feat(EditorView): change default selection styles feat(EditorView): changed default selection styles Dec 10, 2024
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@whiteformed whiteformed force-pushed the feat/change-default-selection-styles branch from f3b5c46 to e3db0bc Compare December 10, 2024 10:07
Comment on lines 12 to 13
// TODO: CHANGE TO TOKEN
$default-selection-background: #e6e6e6;
Copy link
Collaborator Author

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

@whiteformed whiteformed force-pushed the feat/change-default-selection-styles branch from e3db0bc to 0ae5e41 Compare December 10, 2024 12:46
Comment on lines 31 to 54
'--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',
},
Copy link
Member

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': {
Copy link
Member

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?

@whiteformed whiteformed force-pushed the feat/change-default-selection-styles branch 3 times, most recently from d5ffabc to d4179c1 Compare December 10, 2024 13:00
@whiteformed whiteformed requested a review from d3m1d0v December 10, 2024 14:05
@whiteformed whiteformed force-pushed the feat/change-default-selection-styles branch from 1acd755 to c2ba786 Compare December 10, 2024 15:58
@whiteformed whiteformed force-pushed the feat/change-default-selection-styles branch from 300657a to 70f1fcf Compare December 13, 2024 08:41
@whiteformed whiteformed force-pushed the feat/change-default-selection-styles branch 2 times, most recently from 4c9ec08 to c2106f2 Compare December 18, 2024 09:11
@whiteformed whiteformed force-pushed the feat/change-default-selection-styles branch from c2106f2 to 0f513ac Compare December 18, 2024 09:11
@d3m1d0v d3m1d0v marked this pull request as draft December 19, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants