Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Structure the notification sound preview as a button.
sandeep502a6ba586f4
diff --git a/web/styles/settings.css b/web/styles/settings.cssindex 7a2b15d1b6a..2932d88318c 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -196,16 +196,10 @@ a.help_link_widget {}.play_notification_sound {- .notification-sound-icon {+ padding: 0;++ .zulip-icon {font-size: 1.4857em; /* 20.8px at 14px / em */- /* Visually center with chevron in select- by setting the line-height equal to the height- of select which is equal to - 1.4em + 8px (4px- each for top and bottom paddings) + 2px (1px each- for top and bottom borders). */- line-height: calc(1.4 * var(--base-font-size-px) + 10px);- cursor: pointer;- vertical-align: middle;}}diff --git a/web/templates/settings/notification_settings.hbs b/web/templates/settings/notification_settings.hbsindex 07c0e2a6209..b5114709797 100644--- a/web/templates/settings/notification_settings.hbs+++ b/web/templates/settings/notification_settings.hbs@@ -185,9 +185,7 @@<option value="{{ this }}">{{ this }}</option>{{/each}}</select>- <span class="play_notification_sound">- <i class="notification-sound-icon zulip-icon zulip-icon-play-circle" aria-label="{{t 'Play sound' }}"></i>- </span>+ {{> ../components/icon_button icon="play-circle" intent="neutral" custom_classes="play_notification_sound" aria-label=(t "Play sound") }}</div></div>