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

Areas / Rich Text Widget UI updates #4204

Merged
merged 8 commits into from
Jun 21, 2023
Merged

Areas / Rich Text Widget UI updates #4204

merged 8 commits into from
Jun 21, 2023

Conversation

stuartromanek
Copy link
Member

Summary

Note: No changes to interaction patterns, so things don't behave differently they are just enhanced. The only thing we we add is tooltips in more places.

  • Custom transition states for RT toolbar and widget controls
  • Refined tooltip placement for widget controls
  • tooltips for RT tools
  • Refined icon sizing for RT tools in toolbar
  • RT Toolbar transitions
  • New design for widget breadcrumb UI

What are the specific steps to test this change?

  1. link to a3-demo, npm run dev
  2. use the editor

What kind of change does this PR introduce?

(Check at least one)

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

@@ -61,7 +61,6 @@ export default {
buttonOptions() {
return {
label: 'apostrophe:addContent',
iconOnly: this.empty === false,
Copy link
Member Author

Choose a reason for hiding this comment

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

lets us reveal the label on hover

@@ -587,32 +593,92 @@ export default {
}
}

// TODO commented code awaiting the triumphant return of the canvas -SR
Copy link
Member Author

Choose a reason for hiding this comment

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

sad trombone

:tooltip="{
content: tool.label,
placement: 'top',
delay: 650
Copy link
Member Author

Choose a reason for hiding this comment

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

big delay on these because they should be obvious, but still present if they need them.

.apos-tooltip__wrapper {
transition: all 0.2s var(--a-transition-timing-bounce);
/* stylelint-disable-next-line time-min-milliseconds */
transition-delay: 0.1s;
Copy link
Member Author

Choose a reason for hiding this comment

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

ensure we are visible

@ETLaurent
Copy link
Contributor

Running the while cypress tests with the rt-area-ui-updates branch of Apostrophe: https://github.com/apostrophecms/testbed/actions/runs/5271518855

(PR: https://github.com/apostrophecms/testbed/pull/180)

@ETLaurent
Copy link
Contributor

A very small issue, the widget breadcrumb UI gets behind the widget modal header:

image

Co-authored-by: ETLaurent <ETLaurent@users.noreply.github.com>
ETLaurent
ETLaurent previously approved these changes Jun 14, 2023
Copy link
Contributor

@ETLaurent ETLaurent left a comment

Choose a reason for hiding this comment

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

Looking good on testbed! Did a little monkey testing but I might have missed few issues here and there.
Someone with a better expertise on CSS could review it as well.

Overall looks good to me, provided that the cypress tests pass and the comment about ?. is resolved.
Approving it in order not to block it since I'll be away for a time!
Nice enhancements 👏

@ETLaurent
Copy link
Contributor

One test is failing, to check if it's related to the changes made in the PR:

image https://github.com/apostrophecms/testbed/actions/runs/5271518855

@stuartromanek
Copy link
Member Author

added a level attribute that indicates what level a breadcrumb is in relationship to the active widget . The active widget is level 0, it's parent is level 1, etc
it goes with this testbed branch https://github.com/apostrophecms/testbed/pull/180
and this pr to cypress-tools https://github.com/apostrophecms/cypress-tools/pull/27

@haroun haroun merged commit 5eec6f8 into main Jun 21, 2023
6 checks passed
@haroun haroun deleted the rt-area-ui-updates branch June 21, 2023 12:08
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.

4 participants