Problem/motivation

An Announcements link was added to the 10.2 release of Drupal. The new toolbar redesign doesn’t include an icon for this new link.

Proposed resolution

Use the megaphone icon from the Phosphoricons. Phosphoricons is the library used for the navigation. Two options for an icon were considered, bell and megaphone. We're going with the megaphone by consuses and because the bell could be confused with a Notifications feature, which Announcements is not. Bells are about getting your attention and notifying you about a certain event. A bell icon is the most common image used in the context of notifications across the web as well as operating systems. While a megaphone you are using to "tell something to the world" which is happening here, eg. the Drupal Association is announcing certain details.

Issue fork drupal-3418489

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Issue fork navigation-3418489

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    1 hidden branch
  • 1.x Comparechanges, plain diff MR !239

Comments

baluv3 created an issue. See original summary.

kostyashupenko’s picture

Issue tags: +Needs design

@ckrina bump

ckrina’s picture

Assigned: Unassigned » ckrina

Thanks! I'll work on this.

ckrina’s picture

Issue summary: View changes
StatusFileSize
new5.74 KB
new7.51 KB

I think from Phosphoricons (the library used for the navigation) we could go with this 2 options:

A bell:

A megaphone:

I’d go with the megaphone because the bell could be confused with a Notifications feature.

rkoller’s picture

big +1 for the megaphone. bells are about getting your attention and notifying you about a certain event plus a bell icon is the most common image used in the context of notifications across the web as well as operating systems. while a megaphone you are are using to "tell something to the world" which is happening here, the drupal association is announcing certain details.

amandeep123’s picture

StatusFileSize
new5.46 KB

Thanks for the suggestion,@ckrina @rkoller! I completely agree that the megaphone better captures the essence of making announcements, aligning perfectly with the purpose of our navigation. Your insight regarding the common association of bells with notifications further solidifies the choice for the megaphone.

I've gone ahead and implemented the megaphone icon for the announcement, creating a patch to reflect this change. Additionally, I'll be submitting a merge request to ensure this improvement is seamlessly integrated.

ckrina’s picture

Assigned: ckrina » Unassigned
Issue tags: -Needs design

Thanks all for the feedback, un-assigning then to let others contribute here. The the icon to implement this changed can be taken directly from Phosphor and adapted. https://phosphoricons.com/?q=%22megaphone%22

@amandeep_lnwebworks thanks for working on this! We don't use patches anymore, we use to contribute MRs :)
You can read how the workflow works at Creating merge requests and a broader guide in Using GitLab to Contribute to Drupal.

amandeep123’s picture

amandeep123’s picture

Hy @ckrina,
I have already created MR !239,Please Review It Once.
Thank You.

m4olivei’s picture

Status: Active » Needs review
m4olivei’s picture

Status: Needs review » Needs work
ckrina’s picture

Project: Navigation » Drupal core
Version: 1.x-dev » 11.x-dev
Component: User interface » navigation.module
Issue tags: +Novice

adwivedi008 made their first commit to this issue’s fork.

adwivedi008’s picture

@ckrine @m4olivei

Implemented the suggested changes but got Merge error
Can we resolve this by rebasing with 11.x

m4olivei’s picture

Status: Needs work » Needs review

Thanks @adwivedi008!

The navigation module moved to core rencently in #3438895: Add the new Navigation to core as an Experimental module, so we need to move this MR to be against Drupal core.

I've gone ahead and done that. Unfortunately there was no easy git way to move the commits since they were against two different repos.

Marking this as Needs Review. For me it's looking good!

finnsky’s picture

Status: Needs review » Needs work

I've added comment in MR

ahsannazir made their first commit to this issue’s fork.

ckrina’s picture

Issue tags: +Portland2024
m4olivei’s picture

Status: Needs work » Needs review

Looks like @finnsky's feedback on cleaning up the SVG was addressed. Moving to Needs Review.

m4olivei’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new107.61 KB

I've tested locally. It's looking good!

Marking RTBC.

xjm’s picture

Assigned: Unassigned » ckrina
Issue tags: -Novice, -Portland2024 +Needs subsystem maintainer review

We should probably have @ckrina or another subsystem maintainer sign off on the icon choice and the changeset. Thanks!

xjm’s picture

Issue tags: +Portland2024

Oopsie, did not mean to remove the event tag.

ckrina’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs work
Issue tags: -Needs subsystem maintainer review +Novice
StatusFileSize
new20.81 KB
new30.85 KB

Sorry, small detail! The icon megaphone should be pointing to the other direction, so moving this again to Needs work:

Wrong:

It should actually be:

patrickfgoddard made their first commit to this issue’s fork.

patrickfgoddard’s picture

Flipped icon per request (so megaphone is pointing to right). First time using drupalpod, so please excuse if issues with process.

patrickfgoddard’s picture

Status: Needs work » Needs review
ckrina’s picture

Status: Needs review » Needs work

Would it be possible to clean-up&minimize the SVG itself too through a tool like https://jakearchibald.github.io/svgomg/? Sorry I didn't see it sooner :)

rkoller’s picture

hm i've applied MR7854 and on ltr the announcement icon is still facing to the left for me? and talking of the reading direction. if the icon should point to the right for ltr, should then the icon point to the left for rtl?

patrickfgoddard’s picture

I think I need to rebuild css. Trying to figure out how to do within Drupalpod now.

ckrina’s picture

Assigned: ckrina » Unassigned
ahsannazir’s picture

Status: Needs work » Needs review
kanchan bhogade’s picture

StatusFileSize
new27.81 KB
new22.51 KB

Hi
I've tested MR !7854 on Drupal 11.x
MR is applied cleanly...

The Megaphone icon is added for the Announcements link with the correct direction.

Adding SS for reference

RTBC+1

smustgrave’s picture

Status: Needs review » Needs work

Can the issue summary be updated to include what icon was being chosen and possibly why

rkoller’s picture

I've applied the latest changes. When I test in Edge in LTR the megaphone points to the right while on RTL i can confirm it points to the left - that is the expected behavior. BUT when i test in Safari (17.4.1 on macOS 14.4.1) it is the other way around, LTR still points to the left and RTL points to the right.

ahsannazir’s picture

Status: Needs work » Needs review
StatusFileSize
new195.67 KB

The issue was happening due to transform property in the svg itself. Fixed the SVG and moved style to stylesheet

smustgrave’s picture

Status: Needs review » Needs work

#36 still needs to happen.

m4olivei’s picture

Issue summary: View changes
Status: Needs work » Needs review

Updated the issue description summarizing comments in favor of using the Megaphone.

m4olivei’s picture

Issue summary: View changes
plopesc’s picture

Status: Needs review » Reviewed & tested by the community

MR looks good and S has been updated as requested in #36.
Marking as RTBC.

nod_’s picture

Version: 11.x-dev » 10.3.x-dev
Status: Reviewed & tested by the community » Fixed

Committed and pushed ebb6a6e331 to 11.x and bf6a394c50 to 11.0.x and 67178dbf06 to 10.4.x and 02b12c1e11 to 10.3.x. Thanks!

  • nod_ committed 02b12c1e on 10.3.x
    Issue #3418489 by ahsannazir, m4olivei, patrickfgoddard, Amandeep123,...

  • nod_ committed 67178dbf on 10.4.x
    Issue #3418489 by ahsannazir, m4olivei, patrickfgoddard, Amandeep123,...

  • nod_ committed bf6a394c on 11.0.x
    Issue #3418489 by ahsannazir, m4olivei, patrickfgoddard, Amandeep123,...

  • nod_ committed ebb6a6e3 on 11.x
    Issue #3418489 by ahsannazir, m4olivei, patrickfgoddard, Amandeep123,...
nod_’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.