wordpress-develop icon indicating copy to clipboard operation
wordpress-develop copied to clipboard

60625 site icon UI

Open kebbet opened this issue 1 year ago • 8 comments

First run of updating the UI.

https://core.trac.wordpress.org/ticket/60625

Before 60625-before

After

60625-after

kebbet avatar Jun 21 '24 10:06 kebbet

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props kebbet, peterwilsoncc, mukesh27, afercia, jorbin, swissspidy.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

github-actions[bot] avatar Jun 21 '24 10:06 github-actions[bot]

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance, it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

github-actions[bot] avatar Jun 21 '24 10:06 github-actions[bot]

@mukeshpanchal27, whats your opinion, should we remove both these assets: browser-rtl.png and browser.png?

kebbet avatar Jun 21 '24 14:06 kebbet

I'd like to suggest to take the opportunity of this PR to chamge a couple translatable strings, specifically the ones that use th the recommended size with this pattern: 512 × 512. The problem with × is that, while visually looks like an x, it is ready by screen readers as times. In the past some similar ases in core have been updated ot use by so that it will bread 512 by 512 pixels. I would also consider to remove the placeholder and make the string fully translatable. Here and here.

afercia avatar Jun 28 '24 11:06 afercia

A few minor things:

In the media modal dialog preview;

mieda modal preview

The preview shows the app icon first and the browser icon last. However, the description As a browser icon and an app icon. mentions the two icons in a reversed order, which may be a little confusing. I'd suggest to change the description to use the same order of the visual preview order: As an app icon and a browser icon.

The customizer media control shows the Remove button first and the Change image button last:

customizer

While in the Settings page the order is different:

settings page

If possible, I would use the same order everywhere. Not sure if that would impact all the customizer media controsl though. It's a minor thing though also because the Site icon UI is typically used once or very few times.

Noting that also the description placement in the customizer is different but I'm not sure that can be changed.

afercia avatar Jun 28 '24 11:06 afercia

A few minor things:

In the media modal dialog preview;

[IMAGE] The preview shows the app icon first and the browser icon last. However, the description As a browser icon and an app icon. mentions the two icons in a reversed order, which may be a little confusing. I'd suggest to change the description to use the same order of the visual preview order: As an app icon and a browser icon.

Great feedback, changed that.

The customizer media control shows the Remove button first and the Change image button last:

[IMAGE] While in the Settings page the order is different:

[IMAGE] If possible, I would use the same order everywhere. Not sure if that would impact all the customizer media controsl though. It's a minor thing though also because the Site icon UI is typically used once or very few times.

The site logo controller in the customizer share the same pattern as site icon controller. So i think thats a separate ticket.

Noting that also the description placement in the customizer is different but I'm not sure that can be changed.

That can be changed, which the screenshot shows, and I removed the long italic style, plus changed to 512 by 512 in the description.

bild

kebbet avatar Jun 28 '24 16:06 kebbet

I removed the long italic style

Good catch, thank you.

afercia avatar Jul 01 '24 06:07 afercia

Thanks for taking the time for testing and reviewing @peterwilsoncc

kebbet avatar Jul 31 '24 07:07 kebbet

This is a screenshot with the current state of the PR.

60625-after2

kebbet avatar Aug 01 '24 11:08 kebbet

While looking at @jameskoster original comment i notices the suggestion to make the colors to CSS-vars. Latest commit implements that.

The commit also takes advantage of the CSS vars, and implements a dark mode style. See attached image.

bild

kebbet avatar Aug 02 '24 08:08 kebbet

Merged r58927 / https://github.com/WordPress/wordpress-develop/commit/3da83600189bc98661110b32dc488e753c8d622d

Thanks for your patience during the review process.

peterwilsoncc avatar Aug 23 '24 22:08 peterwilsoncc