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

Drag-and-drop preview is blackened when using the block balloon. #15112

Merged

Conversation

illia-stv
Copy link
Contributor

Suggested merge commit message (convention)

Fix (clipboard): Drag and drop preview should not have black background on iOS. Closes #15085.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

* Check: https://github.com/ckeditor/ckeditor5/issues/15085
*/
if ( env.isiOS ) {
preview.style.backgroundColor = computedStyle.getPropertyValue( '--ck-color-base-background' );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if checking this CSS property is enough. As I can see it's set only on the editable of the classic editor, but the custom preview is used only in the balloon block editor so most probably that property would not be set properly.
My another doubt is whether content dragged out from a table cell with some dark background.

@Witoso
Copy link
Member

Witoso commented Oct 4, 2023

In the first iteration, I would release a white background fix, to not provide such a bad experience at the first release (still for a very low % of users). @illia-stv test how it works with tables that have background. If it's not confusing, I would go with the current scope.

@arkflpc arkflpc changed the base branch from master to release October 4, 2023 09:01
@arkflpc arkflpc force-pushed the ck/15085-preview-is-blackened-when-using-the-block-balloon branch from 8c924a6 to c462115 Compare October 4, 2023 09:03
@arkflpc arkflpc merged commit 4146775 into release Oct 4, 2023
6 checks passed
@arkflpc arkflpc deleted the ck/15085-preview-is-blackened-when-using-the-block-balloon branch October 4, 2023 09:48
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.

[iOS] Drag-and-drop preview is blackened when using the block balloon.
4 participants