From d86c93c67e4d3413ad89b9af2adf3f2b38aab6b1 Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Mon, 28 Mar 2022 15:12:45 -0700 Subject: [PATCH] Theme: Add temporary badge for Photos to fill empty icon. There isn't a badge for the Photos team yet -- see https://meta.trac.wordpress.org/ticket/5981 -- so for now I just used the `camera` dashicon that Luke Carbis suggested in https://meta.trac.wordpress.org/ticket/5988. We can update it whenever the final badge icon/colors are decided. Fixes #171 --- themes/wporg-5ftf/css/components/_team-badges.scss | 8 ++++++++ themes/wporg-5ftf/functions.php | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/themes/wporg-5ftf/css/components/_team-badges.scss b/themes/wporg-5ftf/css/components/_team-badges.scss index d2289fb..3d78512 100644 --- a/themes/wporg-5ftf/css/components/_team-badges.scss +++ b/themes/wporg-5ftf/css/components/_team-badges.scss @@ -131,6 +131,14 @@ color: rgb(103, 74, 255); } +.badge-photos { + background: rgba(103, 74, 255, 0.25); + box-shadow: 0 0 0 4px rgb(103, 74, 255); +} +.badge-photos:before { + color: rgb(103, 74, 255); +} + .badge-training{ background: rgba(233, 192, 45, 0.25); box-shadow: 0 0 0 4px rgb(233, 192, 45); diff --git a/themes/wporg-5ftf/functions.php b/themes/wporg-5ftf/functions.php index 3a7d4eb..5f56cdc 100644 --- a/themes/wporg-5ftf/functions.php +++ b/themes/wporg-5ftf/functions.php @@ -287,6 +287,10 @@ function get_badge_classes( $team ) { $classes = array( 'badge-openverse', 'dashicons-search' ); break; + case 'photos team': + $classes = array( 'badge-photos', 'dashicons-camera' ); + break; + case 'polyglots team': $classes = array( 'badge-translation-editor', 'dashicons-translation' ); break;