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

Animated backend site logo. (instead of the W logo seen one can see the site logo.) #38575

Closed
paaljoachim opened this issue Feb 7, 2022 · 21 comments · Fixed by #38783
Closed
Assignees
Labels
[Status] In Progress Tracking issues with work in progress

Comments

@paaljoachim
Copy link
Contributor

Description

Hovering over the backend Site logo (when the W is not in use) I have noticed it becomes animated.
Like so:
Site-logo-backend-animated

It would be very helpful if the site logo automatically fills out the square it is in and does not animate.
The animation is kinda disturbing.

Step-by-step reproduction instructions

Add a Site logo, and see if it happens to become animated when hovering over it.
Hmm I am sorry but I am having a difficult time figuring out how the site logo got there in the first place.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 5.9.
Gutenberg plugin 12.5.3
Twenty Twenty Two. (I have switched between various themes.)

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@courtneyr-dev
Copy link
Contributor

Tested in 6 alpha and Gutenberg 12.6.20220207. Animation remains the same. I'm not a fan of this animation. I wonder if there are accessibility implications. Is the goal of animation to show on:hover? If so, what else could achieve that effect more subtly?

@carlomanf
Copy link

Is this the site logo or the site icon? If logo, then it might explain why I was having trouble over at #38555.

@paaljoachim
Copy link
Contributor Author

Hey @carlomanf Actually I am not sure if it is the site logo or the site icon.... I tried adding a site logo and then a site icon to another test site and was not able to get it to show instead of the W.

@courtneyr-dev
Copy link
Contributor

These are site icons, set in Customizer before switching to a block theme. However the animation is still there. Changing Site Logo didn't change my site icon.

@t-hamano
Copy link
Contributor

t-hamano commented Feb 8, 2022

I don't know which version of gutenberg is implemented, but I was able to reflect the site logo and site icon on the block editor by following the steps below.

  • Activate the latest version of the gutenberg plugin.
  • Insert the site logo block and set an image.
  • Enable "Use as site icon" in the block options.

capture

As for the mouse-over animation, it seems to have been done as part of #33132 to improve interaction.

But for some reason, it only animates when an "original site logo" is used.

if ( siteIconUrl ) {
buttonIcon = (
<motion.img
variants={ ! disableMotion && effect }
alt={ __( 'Site Icon' ) }
className="edit-post-fullscreen-mode-close_site-icon"
src={ siteIconUrl }
/>
);
}

I like the animation, but I think the presence or absence of animation should be consistent for both the default logo and the original logo.

@carlomanf
Copy link

carlomanf commented Feb 8, 2022

I tried adding a site logo and then a site icon to another test site and was not able to get it to show instead of the W.

@paaljoachim Was the gutenberg plugin activated or deactivated?

@paaljoachim
Copy link
Contributor Author

paaljoachim commented Feb 8, 2022

Retesting.
WP 5.9
Twenty Twenty-One
Gutenberg plugin not activated.
Readded a site icon.

Switched to Twenty Twenty Two site editing theme.
Went to a page and post and did not see the site icon but noticed the W logo.

Activated the Gutenberg plugin. 12.5.3.
This time the site icon showed up.

The site icon should show up but it should not be animated.


Adding a site icon when FSE theme is activated is done through the Site Logo sidebar options. Add a site logo, add an image and click the toggle "Use as site icon" the W (static) is then switched with the new site icon (animated). It looks like one can not turn off "Use as site icon" to get the default W back.

@richtabor
Copy link
Member

I agree, the animation doesn't seem 100% fitting, maybe just an opacity over, or border color change around the site icon there.

@jameskoster
Copy link
Contributor

Yeah the animation does seem arbitrary and feel a bit distracting.

@paaljoachim
Copy link
Contributor Author

paaljoachim commented Feb 10, 2022

Can we (for now anyway) just remove the animation?
As it is not consistent with the non custom W site icon. Which does not have an animation.
If for whatever reason it feels like a good idea to have an animation for backend site icons then it can be brought up again at a later time.

Backport to WP 5.9.1?
@Mamaduka

@Mamaduka
Copy link
Member

Personally, I don't think this needs to be included in a minor release. We can fix in plugin and ship with 6.0.

/cc-ing @mtias, since I know he worked on animations recently.

@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Feb 10, 2022
@Mamaduka
Copy link
Member

Created PR (#38702) in case this gets picked up for 5.9.1.

@paaljoachim paaljoachim added the Backport to WP Minor Release Pull request that needs to be backported to a WordPress minor release label Feb 10, 2022
@paaljoachim
Copy link
Contributor Author

I added the Backport to minor label just in case we can get it into 5.9.1.

@Mamaduka
Copy link
Member

We should add a label to the PR.

@mtias mtias removed the Backport to WP Minor Release Pull request that needs to be backported to a WordPress minor release label Feb 10, 2022
@mtias
Copy link
Member

mtias commented Feb 10, 2022

Animations can already be suspended if "reduced motion" is in place.

@paaljoachim
Copy link
Contributor Author

paaljoachim commented Feb 10, 2022

Hey @mtias Matias.

I believe "reduced motion" is this: https://a11y-101.com/development/reduced-motion

I will assume from what you are saying is that if one is disturbed by the animated site icon and can not wait for WP 6.0 then one will need to manually turn on reduced motion.

@jasmussen
Copy link
Contributor

jasmussen commented Feb 10, 2022

All animation are disabled automatically if you set your browser or operating system setting to reduce motion. If you're seeing animation, that means you have it on today.

thumb
Screenshot 2022-02-10 at 14 16 07

@paaljoachim
Copy link
Contributor Author

paaljoachim commented Feb 10, 2022

Gotcha thanks for clearing that up Joen.

If there still are disagreements regarding the animation. Perhaps we can lessen it substantially and also add a much lighter animation to the W site icon? To keep a consistent feel to the site icon on hover.

@mtias
Copy link
Member

mtias commented Feb 10, 2022

Yes, sorry, was just bringing it up for the accessibility concern. We can definitely tweak and improve things! Animation finesse can be very subjective.

@paaljoachim
Copy link
Contributor Author

Thanks Matias!

Just thought I would add the following feedback from the Accessibility Slack channel.
https://wordpress.slack.com/archives/C02RP4X03/p1644311084295679
@joedolson replied the following:
"From the accessibility standpoint, I'd call it a totally unnecessary animation that could be annoying, as well as making the function of that icon more confusing."

In general it feels like we need an animation discussion.
What should be or not be animated and how these elements should be animated.

@paaljoachim
Copy link
Contributor Author

Joen made a much smoother and a little more subtitle animation.
I left a comment here: #38783 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress
Projects
None yet
9 participants