Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Do not use bootstrap css in radio-type display settings.

Sahil Batra55aaf1d56d40
diff --git a/static/styles/settings.css b/static/styles/settings.css
index 24461c5e1f9..6d17dbd7e89 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -939,28 +939,40 @@ input[type="checkbox"] {
.emojiset_choices,
.user_list_style_values {
padding: 0 10px;
+}
- label {
- border-bottom: 1px solid hsla(0, 0%, 0%, 0.2);
- padding: 8px 0 10px;
+label.display-settings-radio-choice-label {
+ border-bottom: 1px solid hsla(0, 0%, 0%, 0.2);
+ padding: 8px 0 10px;
- &:last-of-type {
- border-bottom: none;
- }
+ &:last-of-type {
+ border-bottom: none;
+ }
- input[type="radio"] {
- position: relative;
- top: -2px;
- margin: 0 5px 0 0;
+ input[type="radio"] {
+ position: relative;
+ top: -2px;
+ margin: 0 5px 0 0;
+ width: auto;
+ cursor: pointer;
- &:checked + span {
- font-weight: 600;
- }
+ &:focus {
+ outline: 1px dotted hsl(0, 0%, 20%);
+ outline: 5px auto -webkit-focus-ring-color;
+ outline-offset: -2px;
}
- .right {
- float: right;
+ &:disabled {
+ cursor: not-allowed;
}
+
+ &:checked + span {
+ font-weight: 600;
+ }
+ }
+
+ .right {
+ float: right;
}
}
diff --git a/static/templates/settings/display_settings.hbs b/static/templates/settings/display_settings.hbs
index c7b592c0e98..3ee361effee 100644
--- a/static/templates/settings/display_settings.hbs
+++ b/static/templates/settings/display_settings.hbs
@@ -46,7 +46,7 @@
<label class="emoji-theme title">{{t "Emoji theme" }}</label>
<div class="emojiset_choices grey-box prop-element" id="{{prefix}}emojiset" data-setting-widget-type="radio-group" data-setting-choice-type="string">
{{#each settings_object.emojiset_choices}}
- <label>
+ <label class="display-settings-radio-choice-label">
<input type="radio" class="setting_emojiset_choice" name="emojiset" value="{{this.key}}"/>
<span>{{this.text}}</span>
<span class="right">
@@ -84,7 +84,7 @@
<label class="title">{{t "User list style" }}</label>
<div class="user_list_style_values grey-box prop-element" id="{{prefix}}user_list_style" data-setting-widget-type="radio-group" data-setting-choice-type="number">
{{#each user_list_style_values}}
- <label>
+ <label class="display-settings-radio-choice-label">
<input type="radio" class="setting_user_list_style_choice" name="user_list_style" value="{{this.code}}"/>
<span>{{this.description}}</span>
<span class="right preview">