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

Style revisions: reconsider identical styles messaging and apply button behaviour #58526

Open
ramonjd opened this issue Jan 31, 2024 · 1 comment
Labels
Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@ramonjd
Copy link
Member

ramonjd commented Jan 31, 2024

This issue flags some open questions raised in the following discussion:

cc @jameskoster

Identical styles message

It's possible that revisions match styles currently loaded in the editor,, e.g., if folks are using theme style variations or resetting and saving a lot.

When a revision's styles matches those in the editor, no "Apply" button is shown and the following message is displayed "These styles are already applied to your site."

Screenshot 2024-02-01 at 10 24 04 am

Possible alternatives:

  • shorter copy
  • show the Apply button as per normal (even though it won't have any visual effect)
  • semiotic/iconography?

Apply button behaviour

Currently, a style revision's "Apply" button restores that revision into the editor, and closes the styles revisions panel.

2024-02-01.10.24.15.mp4

The functionality to restore a revision is required, however the UX is open to review.

Alternatives:

  • Show a confirmation modal (Do you wish to restore this revision?) before closing style revisions panel
  • ?

Related

@ramonjd ramonjd added [Type] Enhancement A suggestion for improvement. Needs Design Needs design efforts. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json labels Jan 31, 2024
@jameskoster
Copy link
Contributor

Just to unpack a little why this is confusing; the revisions are presented in a timeline format, so it follows that the top-most item in that timeline is the most recent/active state. It's unexpected to find the active state half-way down the timeline, and given the message is the same as the one found in the active style details that's what the UI suggests.

A different message may be adequate... "Matches current styles", or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants