Problem/Motivation
Social media icons should be made configurable through a theme settings form.
Remaining tasks
As of now though the previous issue of social media icons is not visible is solved, but there are still some scope of improvement on it:
1. The a tag is missing href, title and aria-label attribute which will cause accessibility issue.
2. Styling of cursor should be changed to a pointer on these, which generally done in case of all a tags.
3. It'll be better in terms of performance to use any icon-font library like fontawesome or icomoon icons instead of wrapping svg icons over an img tag.
4. To ease the UX, IMO it'll be better to have these configurable through a theme settings form. Its not handy to override templates to add desired social media links!
User interface changes
I loved the way the hover effects have been incorporated with the gradients, but a bit sceptical about the X logo hover effect, tbh not looking that great to me.
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | Screenshot from 2025-01-31 15-16-03.png | 51.61 KB | hetal.solanki |
| #13 | animal-shelter_without-heading.png | 122.59 KB | tirupati_singh |
| #13 | animal-shelter_with-heading.png | 132.72 KB | tirupati_singh |
| #13 | animal-shelter_config.png | 64.99 KB | tirupati_singh |
| #8 | Screenshot from 2024-11-06 15-58-05.png | 45.83 KB | sourojeetpaul |
Issue fork animal_shelter-3414932
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:
Comments
Comment #3
shweta__sharma commentedFixed the social media icon path issue. Kindly review it.
Thanks
Comment #4
divya.sejekan commentedVerified and issue is fixed
Verified on drupal 9.5x with MR! 2 #3
But since twitter is changed to X , its icon also needs to change. So moving it to need Work
Comment #5
shweta__sharma commentedUpdated twitter icon with the new one. Kindly review it.
Thanks
Comment #6
divya.sejekan commentedVerified the updated twitter icon .. look fine
Moving to RTBC
Comment #7
sourojeetpaul commentedHello everyone,
Thanks for taking time out and working on the issue. I appreciate the efforts. Though the MR looks good and apparently solves the issue, but I see further scope of improvement on it.
1. The a tag is missing href, title and aria-label attribute which will cause accessibility issue.
2. Styling of cursor should be changed to a pointer on these, which generally done in case of all a tags.
3. It'll be better in terms of performance to use any icon-font library like fontawesome or icomoon icons instead of wrapping svg icons over an img tag.
4. To ease the UX, IMO it'll be better to have these configurable through a theme settings form. Its not handy to override templates to add desired social media links!
I loved the way the hover effects have been incorporated with the gradients, but a bit sceptical about the X logo hover effect, tbh not looking that great to me, on bonus if anyone can come up with any alternative hover effect that'll also be appreciated!
Hence I'm moving this issue to NW again and updating the IS for better clarity :)
Comment #8
sourojeetpaul commentedThis is what wave tools is also reporting in terms of accessibility that I've mentioned on my previous comment!
Also on using img tag alt attribute is missing. Though I'd like to get rid of img tags here :)
Comment #9
sourojeetpaul commentedComment #10
sourojeetpaul commentedComment #11
sourojeetpaul commentedComment #12
tirupati_singh commentedWorking on it.
Comment #13
tirupati_singh commentedHi @sourojeetpaul, I've added the configuration fields for social media icons. Additionally, I've added a field to Show/Hide social media title element. Please review the MR changes. Attaching the screenshots for your reference.
Thanks!
Comment #14
sourojeetpaul commentedHi @tirupati_singh,
Thanks for taking your time out and picking up the issue. The changes look good to me. But the MR is having some errors, can you kindly resolve those, then I'd be happy to ship it in!
Comment #15
tirupati_singh commentedHi @sourojeetpaul, I've updated the MR. Please review the changes.
Thanks!
Comment #16
hetal.solanki@tirupati_singh
Reviewing the changes, thanks!
Comment #17
hetal.solanki@sourojeetpaul @tirupati_singh
I thoroughly reviewed both MR and the Social Icon Configure. So it's looks good to me.
Please check uploaded screenshot.
So i am moving this to RTBC.
Thank you!!
Comment #19
sourojeetpaul commentedThanks all for your contribution on this issue. The changes look good! Hence I'm going forward with this!