diff options
| author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-23 19:40:37 +0000 |
|---|---|---|
| committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-23 19:40:37 +0000 |
| commit | 4d8af92fa3a43f203679bbbd37968c127d056a4d (patch) | |
| tree | 2617a05a9c5dae629c5d2ee27d8a87ef759f8b28 /chrome/browser/resources/options/content_settings.html | |
| parent | f13b1308b7808034610ef83c5a47dc018d914548 (diff) | |
| download | chromium_src-4d8af92fa3a43f203679bbbd37968c127d056a4d.zip chromium_src-4d8af92fa3a43f203679bbbd37968c127d056a4d.tar.gz chromium_src-4d8af92fa3a43f203679bbbd37968c127d056a4d.tar.bz2 | |
WebUI Prefs: Don't use display:block for labels
Separates our labels into a div and a label, so that labels are no longer display:block. Making labels display:block turns out to be undesirable because it makes the clickable area for the control the full width of the pane, rather than just the control and the label text.
BUG=69792
TEST=Click to the right of a checkbox or radio button's label; it should not active the control.
Review URL: http://codereview.chromium.org/6541086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75772 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/options/content_settings.html')
| -rw-r--r-- | chrome/browser/resources/options/content_settings.html | 194 |
1 files changed, 116 insertions, 78 deletions
diff --git a/chrome/browser/resources/options/content_settings.html b/chrome/browser/resources/options/content_settings.html index dea3b86..c9805c7 100644 --- a/chrome/browser/resources/options/content_settings.html +++ b/chrome/browser/resources/options/content_settings.html @@ -4,25 +4,33 @@ <section> <h3 i18n-content="cookies_tab_label"></h3> <div> - <label class="radio"> - <input type="radio" name="cookies" value="allow"> - <span i18n-content="cookies_allow"></span> - </label> - <label class="radio"> - <input type="radio" name="cookies" value="block"> - <span i18n-content="cookies_block"></span> - </label> + <div class="radio"> + <label> + <input type="radio" name="cookies" value="allow"> + <span i18n-content="cookies_allow"></span> + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="cookies" value="block"> + <span i18n-content="cookies_block"></span> + </label> + </div> - <label class="checkbox"> - <input id="block-third-party-cookies" - pref="profile.block_third_party_cookies" type="checkbox"> - <span i18n-content="cookies_block_3rd_party"></span> - </label> - <label class="checkbox"> - <input id="clear-cookies-on-exit" - pref="profile.clear_site_data_on_exit" type="checkbox"> - <span id="clear-cookies-on-exit-label"></span> - </label> + <div class="checkbox"> + <label> + <input id="block-third-party-cookies" + pref="profile.block_third_party_cookies" type="checkbox"> + <span i18n-content="cookies_block_3rd_party"></span> + </label> + </div> + <div class="checkbox"> + <label> + <input id="clear-cookies-on-exit" + pref="profile.clear_site_data_on_exit" type="checkbox"> + <span id="clear-cookies-on-exit-label"></span> + </label> + </div> <button class="exceptions-list-button" contentType="cookies" i18n-content="manage_exceptions"></button> @@ -35,14 +43,18 @@ <section> <h3 i18n-content="images_tab_label"></h3> <div> - <label class="radio"> - <input type="radio" name="images" value="allow"> - <span i18n-content="images_allow"></span> - </label> - <label class="radio"> - <input type="radio" name="images" value="block"> - <span i18n-content="images_block"></span> - </label> + <div class="radio"> + <label> + <input type="radio" name="images" value="allow"> + <span i18n-content="images_allow"></span> + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="images" value="block"> + <span i18n-content="images_block"></span> + </label> + </div> <button class="exceptions-list-button" contentType="images" i18n-content="manage_exceptions"></button> @@ -53,14 +65,18 @@ <section> <h3 i18n-content="javascript_tab_label"></h3> <div> - <label class="radio"> - <input type="radio" name="javascript" value="allow"> - <span i18n-content="javascript_allow"></span> - </label> - <label class="radio"> - <input type="radio" name="javascript" value="block"> - <span i18n-content="javascript_block"></span> - </label> + <div class="radio"> + <label> + <input type="radio" name="javascript" value="allow"> + <span i18n-content="javascript_allow"></span> + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="javascript" value="block"> + <span i18n-content="javascript_block"></span> + </label> + </div> <button class="exceptions-list-button" contentType="javascript" i18n-content="manage_exceptions"></button> @@ -71,18 +87,24 @@ <section> <h3 i18n-content="plugins_tab_label"></h3> <div> - <label class="radio"> - <input type="radio" name="plugins" value="allow"> - <span i18n-content="plugins_allow"></span> - </label> - <label class="radio" id="click_to_play"> - <input type="radio" name="plugins" value="ask"> - <span i18n-content="plugins_ask"></span> - </label> - <label class="radio"> - <input type="radio" name="plugins" value="block"> - <span i18n-content="plugins_block"></span> - </label> + <div class="radio"> + <label> + <input type="radio" name="plugins" value="allow"> + <span i18n-content="plugins_allow"></span> + </label> + </div> + <div class="radio" id="click_to_play"> + <label> + <input type="radio" name="plugins" value="ask"> + <span i18n-content="plugins_ask"></span> + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="plugins" value="block"> + <span i18n-content="plugins_block"></span> + </label> + </div> <button class="exceptions-list-button" contentType="plugins" i18n-content="manage_exceptions"></button> @@ -96,14 +118,18 @@ <section> <h3 i18n-content="popups_tab_label" class="content-settings-header"></h3> <div> - <label class="radio"> - <input type="radio" name="popups" value="allow"> - <span i18n-content="popups_allow"></span> - </label> - <label class="radio"> - <input type="radio" name="popups" value="block"> - <span i18n-content="popups_block"></span> - </label> + <div class="radio"> + <label> + <input type="radio" name="popups" value="allow"> + <span i18n-content="popups_allow"></span> + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="popups" value="block"> + <span i18n-content="popups_block"></span> + </label> + </div> <button class="exceptions-list-button" contentType="popups" i18n-content="manage_exceptions"></button> @@ -114,18 +140,24 @@ <section> <h3 i18n-content="location_tab_label"></h3> <div> - <label class="radio"> - <input type="radio" name="location" value="allow"> - <span i18n-content="location_allow"></span> - </label> - <label class="radio"> - <input type="radio" name="location" value="ask"> - <span i18n-content="location_ask"></span> - </label> - <label class="radio"> - <input type="radio" name="location" value="block"> - <span i18n-content="location_block"></span> - </label> + <div class="radio"> + <label> + <input type="radio" name="location" value="allow"> + <span i18n-content="location_allow"></span> + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="location" value="ask"> + <span i18n-content="location_ask"></span> + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="location" value="block"> + <span i18n-content="location_block"></span> + </label> + </div> <button class="exceptions-list-button" contentType="location" i18n-content="manage_exceptions"></button> @@ -136,18 +168,24 @@ <section> <h3 i18n-content="notifications_tab_label"></h3> <div> - <label class="radio"> - <input type="radio" name="notifications" value="allow"> - <span i18n-content="notifications_allow"></span> - </label> - <label class="radio"> - <input type="radio" name="notifications" value="ask"> - <span i18n-content="notifications_ask"></span> - </label> - <label class="radio"> - <input type="radio" name="notifications" value="block"> - <span i18n-content="notifications_block"></span> - </label> + <div class="radio"> + <label> + <input type="radio" name="notifications" value="allow"> + <span i18n-content="notifications_allow"></span> + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="notifications" value="ask"> + <span i18n-content="notifications_ask"></span> + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="notifications" value="block"> + <span i18n-content="notifications_block"></span> + </label> + </div> <button class="exceptions-list-button" contentType="notifications" i18n-content="manage_exceptions"></button> |
