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

BUGFIX: Remove duplicate focus ckeditor border #3847

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Sep 9, 2024

With neos/neos-development-collection#3618 the legacy ember css class .neos-inline-editable was removed (previously set here: https://github.com/neos/neos-development-collection/blob/881675b91185cbd8c41cb5e64f7467bf78710e04/Neos.Neos/Classes/Service/ContentElementEditableService.php#L69)

This leads to the default ckeditor focus outline styling not being removable.

Instead, we use [data-__neos-property][contenteditable] to target ckeditor inline elements now.

before after
image image

What I did

How I did it

How to verify it

With neos/neos-development-collection#3618 the legacy ember css class `.neos-inline-editable` was removed (previously set here: https://github.com/neos/neos-development-collection/blob/881675b91185cbd8c41cb5e64f7467bf78710e04/Neos.Neos/Classes/Service/ContentElementEditableService.php#L69)

This leads to the ckeditor focus outline styling not being removable.

Instead, we use `[data-__neos-property][contenteditable]` to target ckeditor inline elements now.
@github-actions github-actions bot added Bug Label to mark the change as bugfix 8.3 labels Sep 9, 2024
Copy link
Member

@Sebobo Sebobo left a comment

Choose a reason for hiding this comment

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

Looks and works great. Thx

@mhsdesign mhsdesign merged commit 99b107e into 8.3 Sep 9, 2024
11 checks passed
@mhsdesign mhsdesign deleted the bugfix/remove-ckeditor-focus-outline-css branch September 9, 2024 11:11
@mhsdesign
Copy link
Member Author

Apparently this also fixes a similar glitch on windows as reported on slack where there is a white outline:

image

image

which is set by the user-agent

image

I'm using Chrome 128.0.6613.138 (Official Build) (64-Bit) on Windows 11 and it is also visible in Firefox. It's coming from the user agent stylesheets. The Neos.Neos:Editable always seems to have the white outline, but it uses a span instead of a div when block=false and then the white outline is visible for each line.

@mhsdesign
Copy link
Member Author

To be totally sure i just retested this on a Neos UI version: v7.3.19 and can confirm that this fully restores the original behaviour, that includes NO outline being shown in focus mode and only on hover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.3 Bug Label to mark the change as bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants