Skip to content

Commit

Permalink
Set white on preview background.
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-stv committed Oct 4, 2023
1 parent c462115 commit 7816f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ckeditor5-clipboard/src/dragdrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ export default class DragDrop extends Plugin {
* Check: https://github.com/ckeditor/ckeditor5/issues/15085
*/
if ( env.isiOS ) {
preview.style.backgroundColor = computedStyle.getPropertyValue( '--ck-color-base-background' );
preview.style.backgroundColor = 'white';
}

preview.innerHTML = dataTransfer.getData( 'text/html' );
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-clipboard/tests/dragdropblocktoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ describe( 'Drag and Drop Block Toolbar', () => {

sinon.assert.calledWith( spy, sinon.match( {
style: {
backgroundColor: 'rgb(255, 255, 255)'
backgroundColor: 'white'
},
className: 'ck ck-content',
firstChild: sinon.match( {
Expand Down

0 comments on commit 7816f00

Please sign in to comment.