Make WordPress Core

Opened 9 months ago

Closed 3 months ago

Last modified 3 months ago

#60625 closed enhancement (fixed)

Update user interface for Site icon selection

Reported by: kebbet's profile kebbet Owned by: peterwilsoncc's profile peterwilsoncc
Milestone: 6.7 Priority: normal
Severity: normal Version: 6.5
Component: Administration Keywords: needs-testing
Focuses: ui, rtl, administration Cc:

Description

Currently a user can set a site icon in two places outside the site editor: the general settings screen (added in 6.5) and the Customizer. Both these places have currently a design with some years to it. This ticket is aimed to discuss the design of these two places, and possible come up with a new one, and implement it.

Note that a preview also is displayed in the media modal when cropping the site icon.

This ticket has it's roots in ticket #54370

Change History (27)

#1 @swissspidy
9 months ago

  • Milestone changed from Awaiting Review to Future Release

#2 @swissspidy
9 months ago

  • Milestone changed from Future Release to 6.6

This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.


9 months ago

#4 @joedolson
9 months ago

  • Focuses accessibility removed

With no specific accessibility issues cited, and no design or UI implementation available, I'm removing the accessibility focus. Feel free to add that back to the ticket when there are specific issues to discuss or a UI to address.

This ticket was mentioned in Slack in #core by nhrrob. View the logs.


6 months ago

#6 @nhrrob
6 months ago

  • Milestone changed from 6.6 to 6.7

We have reviewed in today's bug scrub. It needs design and not ready for 6.6
Moving to next milestone.

This ticket was mentioned in Slack in #design by nhrrob. View the logs.


6 months ago

#8 @Joen
6 months ago

There's a design here that is still relevant: https://core.trac.wordpress.org/ticket/54370#comment:61

This ticket was mentioned in PR #6871 on WordPress/wordpress-develop by @kebbet.


5 months ago
#9

  • Keywords has-patch added

First run of updating the UI.

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

Before
https://github.com/WordPress/wordpress-develop/assets/11491369/8b384eb4-439c-4bba-9f3a-90cfd134a759

After

https://github.com/WordPress/wordpress-develop/assets/11491369/981b357d-994d-4144-8e67-bf2575e11231

#10 @kebbet
5 months ago

  • Focuses rtl administration added
  • Keywords needs-testing added; needs-design has-patch removed

Please review linked PR and test it! Both in LTR and RTL cases. Make sure to build the RTL files.

Also fixed an issue in the crop view on smaller screen sizes, the crop tool was too narrow.

#11 @kebbet
5 months ago

How to test

  • make sure to build RTL files in environment.
  • make sure to follow test steps in both RTL and LTR environments.
  • make sure layout works in all screen sizes.
  • test with solid black and white images.

General options.

  • Go to: wp-admin/options-general.php
  • Remove existing site icon.
  • Add a new image as icon (that already is 512x512px)
  • Add a new image as icon (larger that 512x512px) to trigger crop flow.

Customizer.

  • Activate a classic theme.
  • Go to: wp-admin/customize.php, and Site Identity section
  • Remove existing site icon.
  • Add a new image as icon (that already is 512x512px)
  • Add a new image as icon (larger that 512x512px) to trigger crop flow.

@kebbet commented on PR #6871:


5 months ago
#12

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

#13 @kebbet
5 months ago

The linked PR is based on a simplified version of a new design suggested by @jameskoster here: https://core.trac.wordpress.org/ticket/54370#comment:86

@afercia commented on PR #6871:


5 months ago
#14

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 commented on PR #6871:


5 months ago
#15

A few minor things:

In the media modal dialog preview;

https://github.com/WordPress/wordpress-develop/assets/1682452/34e120ed-14f3-4469-8c3a-d8409aee8fba

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:

https://github.com/WordPress/wordpress-develop/assets/1682452/ab15f614-8410-4714-b913-8a0fef49dc4c

While in the Settings page the order is different:

https://github.com/WordPress/wordpress-develop/assets/1682452/d929a7cb-c17d-4c29-830d-e27ff58daadf

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.

@kebbet commented on PR #6871:


5 months ago
#16

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.

https://github.com/WordPress/wordpress-develop/assets/11491369/917b9a82-21e0-4bc9-92c1-c1a91bc56b81

@afercia commented on PR #6871:


5 months ago
#17

I removed the long italic style

Good catch, thank you.

@kebbet commented on PR #6871:


4 months ago
#18

Thanks for taking the time for testing and reviewing @peterwilsoncc

@kebbet commented on PR #6871:


4 months ago
#19

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

https://github.com/user-attachments/assets/165e0246-84d0-440c-b7f6-df357982cfdf

#20 @peterwilsoncc
4 months ago

I think the linked pull request is ready for commit.

It would be good to get some additional testing and an approval from the design team.

This ticket was mentioned in Slack in #design by peterwilsoncc. View the logs.


4 months ago

#22 @Joen
4 months ago

I would've liked the final result to be slightly closer to what was previously suggested and designed here, https://core.trac.wordpress.org/ticket/54370#comment:61, but that's not a blocker. I expect this section in general to eventually be revisited in a more holistic sense, so it seems okay to veer closer to base functionality at this point.

However it is confusing to me that "Site Icon" shows up as two separate sections, one for the upload, one for the preview, and with Tagline in-between.

I share that review mainly based on a review of the visuals (thank you for including).

@kebbet commented on PR #6871:


4 months ago
#23

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.

https://github.com/user-attachments/assets/9f9f7ad0-2413-420c-96e8-e4fddd5d49bf

#24 @kebbet
4 months ago

The screenshot-png is a composite of multiple images. I missed to separate empty state and active state for the site icon section, that’s why you gets confused @Joen A new screenshot begins after the tag line section, notice a black border to the right?

#25 @Joen
4 months ago

Ah, that makes sense! 👍 👍

#26 @peterwilsoncc
3 months ago

  • Owner set to peterwilsoncc
  • Resolution set to fixed
  • Status changed from new to closed

In 58927:

Administration: Modernize Site Icon UI in settings, customizer.

Updates the UI for previewing a site icon in general settings and the customizer to account for changes to browser designs over the past years.

Props joedolson, joen, kebbet, nhrrob, swissspidy, mukesh27, afercia, jorbin.
Fixes #60625.

Note: See TracTickets for help on using tickets.