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

Editing UI for Raw HTML embedding feature #8301

Merged
merged 45 commits into from
Oct 22, 2020
Merged

Editing UI for Raw HTML embedding feature #8301

merged 45 commits into from
Oct 22, 2020

Conversation

pomek
Copy link
Member

@pomek pomek commented Oct 20, 2020

Suggested merge commit message (convention)

Internal (html-embed): Editing UI for Raw HTML embedding feature. Closes #8291.

Tests (theme-lark): Added new icons to the manual test.


Additional information

Requires: #8290.

@pomek pomek requested a review from oleq October 20, 2020 14:41
@pomek
Copy link
Member Author

pomek commented Oct 20, 2020

Embedding a manual test HTML into the editor:

image

@Reinmar
Copy link
Member

Reinmar commented Oct 20, 2020

@pomek pomek requested a review from Reinmar October 21, 2020 06:43
@pomek pomek marked this pull request as ready for review October 21, 2020 06:43
@oleq
Copy link
Member

oleq commented Oct 21, 2020

The widget needs some overflow:

@oleq
Copy link
Member

oleq commented Oct 21, 2020

The button needs some sane z-index (it's underneath the preview)

@Reinmar
Copy link
Member

Reinmar commented Oct 21, 2020

Just checking – do we have a mask over the preview to intercept all interactions? IMO, clicking the entire area should result in selecting the widget with one exception - clicking the "edit" button should work.

@pomek
Copy link
Member Author

pomek commented Oct 21, 2020

Just checking – do we have a mask over the preview to intercept all interactions?

No, we don't.

@pomek
Copy link
Member Author

pomek commented Oct 21, 2020

Switching the selected element after inserting an empty rawHtml element.

image

The container needs a min-height value.

@pomek
Copy link
Member Author

pomek commented Oct 21, 2020

Two widgets nearby themselves look bad:

image

@pomek
Copy link
Member Author

pomek commented Oct 21, 2020

@Reinmar, #8301 (comment), fixed in 14e13fa.

@oleq
Copy link
Member

oleq commented Oct 21, 2020

Some suggestions concerning CSS classes according to the code style guide:

  • raw-html -> ✅
  • raw-html--preview-enabled -> raw-html_preview_enabled
  • raw-html--display-preview -> raw-html_preview_visible
  • raw-html__switch-mode -> raw-html__mode-toggle-button
  • raw-html__source -> ✅
  • raw-html__preview -> ✅

@pomek
Copy link
Member Author

pomek commented Oct 21, 2020

@oleq, names of the CSS classes are fixed in e89b76e.

@pomek
Copy link
Member Author

pomek commented Oct 21, 2020

After clicking a textarea, the model selection should be set on the rawHtml element. If not, previews will not work or the command will update the wrong element.

Fixed in 4d29875.

@pomek
Copy link
Member Author

pomek commented Oct 22, 2020

Commit build:

image

PR build:

image

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.

Improve UI for HTML embed feature
3 participants