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

60625 site icon UI #6871

Open
wants to merge 25 commits into
base: trunk
Choose a base branch
from
Open

60625 site icon UI #6871

wants to merge 25 commits into from

Conversation

kebbet
Copy link

@kebbet kebbet commented Jun 21, 2024

First run of updating the UI.

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

Before
60625-before

After

60625-after

Copy link

github-actions bot commented Jun 21, 2024

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, mukesh27, afercia.

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

Copy link

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.

@kebbet
Copy link
Author

kebbet commented Jun 21, 2024

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

@afercia
Copy link
Contributor

afercia commented Jun 28, 2024

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
Copy link
Contributor

afercia commented Jun 28, 2024

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.

Copy link
Contributor

@afercia afercia left a comment

Choose a reason for hiding this comment

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

From an accessibility perspective everything looks good to me, thanks!
I quickly tested the functionality and didn't notice any issue

I left some minor notes. I'll leave a more complete code review to someone else more familiar than me with the customizer.

@kebbet
Copy link
Author

kebbet commented Jun 28, 2024

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

@afercia
Copy link
Contributor

afercia commented Jul 1, 2024

I removed the long italic style

Good catch, thank you.

.env Outdated Show resolved Hide resolved
src/wp-admin/css/site-icon.css Outdated Show resolved Hide resolved
src/wp-admin/css/site-icon.css Outdated Show resolved Hide resolved
src/wp-admin/css/site-icon.css Outdated Show resolved Hide resolved
src/wp-admin/options-general.php Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants