Index: new-options.html |
=================================================================== |
--- a/new-options.html |
+++ b/new-options.html |
@@ -78,19 +78,21 @@ |
<div id="content-general" role="tabpanel" aria-labelledby="tab-general"> |
<h1 class="i18n_options_tab_general"></h1> |
juliandoucette
2017/09/12 22:45:36
NIT/Suggest: Wrap <h1> and <p> inside a <header>
saroyanm
2017/09/13 15:26:35
Agree.
saroyanm
2017/09/13 16:47:58
Done.
|
<p class="i18n_options_general_description"></p> |
- <section> |
+ <section class="cols"> |
<h2 class="i18n_options_privacy_header"></h2> |
- <ul id="recommend-protection-list-table" class="table list"> |
+ <ul class="list" id="recommend-protection-list-table"> |
<template> |
<button data-action="toggle-remove-subscription" role="checkbox" class="control"></button> |
juliandoucette
2017/09/12 22:45:35
NIT/Suggest: Implement a custom checkbox like this
saroyanm
2017/09/13 15:26:34
We will file another issue to address separately.
|
<label class="display"></label> |
- <span class="i18n_options_readMore" data-tooltip="options_protection_%value%_tooltip"></span> |
+ <span data-tooltip="options_protection_%value%_tooltip"></span> |
</template> |
</ul> |
</section> |
- <section> |
- <h2 class="i18n_options_acceptableAds_header"></h2> |
- <p class="i18n_options_acceptableAds_description"></p> |
+ <section class="cols"> |
+ <header> |
+ <h2 class="i18n_options_acceptableAds_header"></h2> |
+ <p class="i18n_options_acceptableAds_description"></p> |
+ </header> |
<form id="acceptable-ads"> |
<div> |
<input data-action="switch-acceptable-ads" type="radio" name="acceptable-ads" value="ads"> |
@@ -110,35 +112,37 @@ |
</div> |
</form> |
</section> |
- <section> |
- <h2 class="i18n_options_language_header"></h2> |
- <p class="i18n_options_language_description"></p> |
+ <section class="cols"> |
+ <header> |
+ <h2 class="i18n_options_language_header"></h2> |
+ <p class="i18n_options_language_description"></p> |
+ </header> |
<div id="blocking-languages"> |
saroyanm
2017/09/06 19:02:56
Note: There is a ticket for improving semantics us
juliandoucette
2017/09/12 22:45:35
Acknowledged.
|
<ul id="blocking-languages-table" class="table list"> |
<template> |
<label class="display"></label> |
<button data-single="hidden" data-action="remove-subscription" class="delete control" title="options_control_remove_title"></button> |
- <button data-single="visible" data-action="open-dialog" data-dialog="language-change" class="i18n_options_language_change"></button> |
+ <button data-single="visible" data-action="open-dialog" data-dialog="language-change" class="i18n_options_language_change link"></button> |
</template> |
</ul> |
- <div class="controls"> |
- <button data-action="open-dialog" data-dialog="language-add"> |
- <span class="i18n_options_language_add"></span> |
- </button> |
- </div> |
+ <button class="i18n_options_language_add list" data-action="open-dialog" data-dialog="language-add"></button> |
+ <p class="i18n_options_language_tip"></p> |
</div> |
- <p class="i18n_options_language_tip"></p> |
</section> |
- <section> |
- <h2 class="i18n_options_more_filters_header"></h2> |
- <p class="i18n_options_more_filters_description"></p> |
- <ul id="custom-list-table" class="table list"> |
- <template> |
- <label class="display"></label> |
- <button data-action="remove-subscription" class="delete control" title="options_control_remove_title"></button> |
- </template> |
- </ul> |
- <p class="i18n_options_more_filters_note"></p> |
+ <section class="cols"> |
+ <header> |
+ <h2 class="i18n_options_more_filters_header"></h2> |
+ <p class="i18n_options_more_filters_description"></p> |
+ </header> |
+ <div> |
+ <ul id="custom-list-table" class="table list"> |
juliandoucette
2017/09/12 22:45:35
NIT: I think "table" and "list" is redundant here.
saroyanm
2017/09/13 15:26:34
I'm using .table for the "list items" that has bor
|
+ <template> |
+ <label class="display"></label> |
+ <button data-action="remove-subscription" class="i18n_options_control_remove_title link control" title="options_control_remove_title"></button> |
+ </template> |
+ </ul> |
+ <p class="i18n_options_more_filters_note"></p> |
+ </div> |
</section> |
</div> |
@@ -146,14 +150,13 @@ |
<div id="content-whitelist" role="tabpanel" aria-labelledby="tab-whitelist"> |
<h1 class="i18n_options_tab_whitelist"></h1> |
<p class="i18n_options_whitelist_description"></p> |
- <form> |
+ <form class="section"> |
<input id="whitelisting-textbox" type="text"> |
<button id="whitelisting-add-button" |
type="submit" |
data-action="add-domain-exception" |
- class="i18n_options_whitelist_add" disabled> |
+ class="i18n_options_whitelist_add primary" disabled> |
</button> |
- <div id="whitelisting-validation"></div> |
</form> |
<ul id="whitelisting-table" class="table list"> |
<template> |
@@ -168,117 +171,107 @@ |
<!-- Advanced tab content --> |
<div id="content-advanced" role="tabpanel" |
aria-labelledby="tab-advanced"> |
- <div> |
- <h1 class="i18n_options_tab_advanced"></h1> |
- <p class="i18n_options_advanced_description"></p> |
- <section> |
- <h2 class="i18n_options_customize_header"></h2> |
- <ul id="customize" class="table"> |
- <li data-pref="shouldShowBlockElementMenu"> |
- <label> |
- <button role="checkbox" data-action="toggle-pref"></button> |
- <span class="i18n_options_customize_blockElement"></span> |
- <span class="i18n_options_readMore" |
- data-tooltip="options_customize_blockElement_tooltip"></span> |
- </label> |
- </li> |
- <li data-pref="show_devtools_panel"> |
- <label> |
- <button role="checkbox" data-action="toggle-pref"></button> |
- <span class="i18n_options_customize_showDevToolsPanel"></span> |
- <span class="i18n_options_readMore" |
- data-tooltip="options_customize_showDevToolsPanel_tooltip"></span> |
- </label> |
- </li> |
- <li data-pref="notifications_ignoredcategories"> |
- <label> |
- <button role="checkbox" data-action="toggle-pref"></button> |
- <span class="i18n_options_customize_showNotifications"></span> |
- <span class="i18n_options_readMore" |
- data-tooltip="options_customize_showNotifications_tooltip"></span> |
- </label> |
- </li> |
- </ul> |
- </section> |
- </div> |
+ <h1 class="i18n_options_tab_advanced"></h1> |
juliandoucette
2017/09/12 22:45:35
NIT/Suggest: Wrap this <h1> and <p> in a <header>
saroyanm
2017/09/13 15:26:35
Acknowledged.
|
+ <p class="i18n_options_advanced_description"></p> |
+ <section class="cols"> |
+ <h2 class="i18n_options_customize_header"></h2> |
+ <ul id="customize" class="list"> |
+ <li data-pref="shouldShowBlockElementMenu"> |
+ <button role="checkbox" data-action="toggle-pref"></button> |
+ <span class="i18n_options_customize_blockElement display"></span> |
+ <span data-tooltip="options_customize_blockElement_tooltip"></span> |
+ </li> |
+ <li data-pref="show_devtools_panel"> |
+ <button role="checkbox" data-action="toggle-pref"></button> |
+ <span class="i18n_options_customize_showDevToolsPanel display"></span> |
+ <span data-tooltip="options_customize_showDevToolsPanel_tooltip"></span> |
+ </li> |
+ <li data-pref="notifications_ignoredcategories"> |
+ <button role="checkbox" data-action="toggle-pref"></button> |
+ <span class="i18n_options_customize_showNotifications display"></span> |
+ <span data-tooltip="options_customize_showNotifications_tooltip"></span> |
+ </li> |
+ </ul> |
+ </section> |
<section> |
- <h1 class="i18n_options_filterList_title"></h1> |
- <p id="filter-lists-description" class="i18n_options_filterList_description"></p> |
+ <header> |
+ <h2 class="i18n_options_filterList_title"></h2> |
+ <p id="filter-lists-description" class="i18n_options_filterList_description"></p> |
+ </header> |
- <div id="all-filter-lists-table-header"> |
- <h2 class="i18n_options_filterList_column_status"></h2> |
- <h2 class="i18n_options_filterList_column_name"></h2> |
- <h2 class="i18n_options_filterList_column_update"></h2> |
+ <div id="all-filter-lists-table-header" class="th"> |
juliandoucette
2017/09/12 22:45:35
Note: It's not clear why you didn't use a real tab
saroyanm
2017/09/13 15:26:35
We have issue to address that -> https://issues.ad
|
+ <h3 class="i18n_options_filterList_column_status col4"></h3> |
+ <h3 class="i18n_options_filterList_column_name col4"></h3> |
+ <h3 class="i18n_options_filterList_column_update col4"></h3> |
+ <h3 class="col4"></h3> |
</div> |
<ul class="table cols" id="all-filter-lists-table"> |
juliandoucette
2017/09/12 22:45:34
Note:
I was able to:
- Make this list unrespons
saroyanm
2017/09/13 15:26:35
Most of them are caused by adding empty filter lis
|
<template> |
- <button data-action="remove-subscription" class="control delete"></button> |
- <button data-action="toggle-disable-subscription" role="checkbox" class="control"> |
- </button> |
- <div class="state"> |
- <span class="i18n_options_filterList_state_active" id="state-active"></span> |
- <span class="i18n_options_filterList_state_disabled" id="state-disabled"></span> |
+ <div class="col4"> |
+ <button data-action="toggle-disable-subscription" role="checkbox" class="control toggle"> |
juliandoucette
2017/09/12 22:45:35
NIT/Suggest: A checkbox is a more appropriate inpu
juliandoucette
2017/09/12 22:45:35
NIT: This switch shows 1px from the left on the ri
saroyanm
2017/09/13 15:26:35
Same as mentioned above.
saroyanm
2017/09/13 15:26:35
I'll update width of icon to -> 2.25rem
saroyanm
2017/09/13 16:47:57
Done.
|
+ </button> |
+ <div class="state"> |
+ <span class="i18n_options_filterList_state_active" id="state-active"></span> |
+ <span class="i18n_options_filterList_state_disabled" id="state-disabled"></span> |
+ </div> |
</div> |
- <div> |
+ <div class="col4"> |
<label class="display"></label> |
</div> |
- <span class="last-update"></span> |
- <span class="message"></span> |
- <a data-action="open-context-menu" class="arrow"></a> |
- <div role="menubar" class="context-menu-wrapper"> |
- <div class="context-menu"> |
- <ul class="content" role="menu"> |
- <li role="menuitem"> |
- <a class="i18n_options_filterList_updateNow update-subscription" data-action="update-subscription"></a> |
- </li> |
- <li role="menuitem"> |
- <a class="i18n_options_filterList_website website" target="_blank"></a> |
- </li> |
- <li role="menuitem"> |
- <a class="i18n_options_filterList_source source" target="_blank"></a> |
- </li> |
- <li role="menuitem"> |
- <a class="i18n_options_filterList_delete delete" data-action="remove-subscription"></a> |
- </li> |
- </ul> |
+ <div class="col4"> |
+ <span class="last-update"></span> |
+ <span class="message"></span> |
+ </div> |
+ <div class="col4"> |
+ <button data-action="open-context-menu" class="gear"></button> |
+ <div role="menubar" class="context-menu-wrapper"> |
+ <div class="context-menu"> |
+ <ul class="content" role="menu"> |
+ <li role="menuitem"> |
+ <button class="i18n_options_filterList_updateNow update-subscription" data-action="update-subscription"></button> |
+ </li> |
+ <li role="menuitem"> |
+ <a class="i18n_options_filterList_website website" target="_blank"></a> |
+ </li> |
+ <li role="menuitem"> |
+ <a class="i18n_options_filterList_source source" target="_blank"></a> |
+ </li> |
+ <li role="menuitem"> |
+ <button class="i18n_options_filterList_delete delete" data-action="remove-subscription"></button> |
+ </li> |
+ </ul> |
+ </div> |
</div> |
+ <button data-action="remove-subscription" class="control delete"></button> |
</div> |
</template> |
</ul> |
- <div class="controls"> |
- <button data-action="open-dialog" data-dialog="custom"> |
- <span class="icon icon-add"></span> |
- <span class="i18n_options_filterList_add"></span> |
- </button> |
- <button data-action="update-all-subscriptions"> |
- <span class="icon icon-update"></span> |
- <span class="i18n_options_filterList_update"></span> |
- </button> |
- </div> |
+ <button class="i18n_options_filterList_add primary" data-action="open-dialog" data-dialog="custom"></button> |
+ <button id="update" class="i18n_options_filterList_update secondary" data-action="update-all-subscriptions"></button> |
</section> |
- <section> |
- <h1 class="i18n_options_customFilters_title"></h1> |
- <p class="i18n_options_customFilters_description"></p> |
- <h2 class="i18n_options_customFilters_widget_title"></h2> |
+ <section class="cols"> |
+ <header> |
+ <h2 class="i18n_options_customFilters_title"></h2> |
+ <p class="i18n_options_customFilters_description"></p> |
+ </header> |
<div id="custom-filters"> |
+ <h3 class="i18n_options_customFilters_widget_title"></h3> |
<div id="empty-custom-filters"> |
<p class="i18n_options_customFilters_tip"></p> |
juliandoucette
2017/09/12 22:45:35
NIT: You're missing an icon here.
saroyanm
2017/09/13 15:26:36
Yes, we are waiting for the assets
|
- <button class="i18n_options_customFilters_start" data-action="edit-custom-filters"> |
+ <button class="i18n_options_customFilters_start secondary" data-action="edit-custom-filters"> |
juliandoucette
2017/09/12 22:45:35
NIT: This is supposed to be a primary button.
saroyanm
2017/09/13 15:26:36
Acknowledged.
saroyanm
2017/09/13 16:47:57
Done.
|
</button> |
<p> |
<a class="i18n_options_customFilters_learn" id="link-filters" target="_blank"></a> |
juliandoucette
2017/09/12 22:45:34
NIT: This string is missing a period.
saroyanm
2017/09/13 15:26:35
In specs documentation we are not using period.
|
</p> |
</div> |
<textarea id="custom-filters-raw" rows="15"></textarea> |
- <button id="custom-filters-edit" class="i18n_options_customFilter_edit" data-action="edit-custom-filters"> |
+ <button id="custom-filters-edit" class="i18n_options_customFilter_edit secondary" data-action="edit-custom-filters"> |
</button> |
<div id="custom-filters-raw-controls"> |
- <button class="i18n_options_customFilter_save" data-action="save-custom-filters"> |
- </button> |
- <button class="i18n_options_customFilter_cancel" data-action="cancel-custom-filters"> |
- </button> |
+ <button class="i18n_options_customFilter_cancel secondary" data-action="cancel-custom-filters"></button> |
+ <button class="i18n_options_customFilter_save primary" data-action="save-custom-filters"></button> |
</div> |
</div> |
</section> |
@@ -288,7 +281,7 @@ |
<div id="content-help" role="tabpanel" aria-labelledby="tab-help"> |
<h1 class="i18n_options_tab_help"></h1> |
<p class="i18n_options_help_description"></p> |
- <section> |
+ <section class="cols"> |
<h2 class="i18n_options_support_title"></h2> |
<ul> |
<li id="report-issue" class="i18n_options_report_issue"></li> |
@@ -297,9 +290,11 @@ |
<li id="report-forum" class="i18n_options_report_forum"></li> |
</ul> |
</section> |
- <section> |
- <h2 class="i18n_options_social_title"></h2> |
- <p class="i18n_options_social_description"></p> |
+ <section class="cols"> |
+ <header> |
+ <h2 class="i18n_options_social_title"></h2> |
+ <p class="i18n_options_social_description"></p> |
+ </header> |
<div id="social"> |
<ul id="social-general"> |
<li><a id="twitter">Twitter</a></li> |
@@ -324,13 +319,13 @@ |
<div id="dialog" role="dialog" aria-hidden="true"> |
<header> |
<span id="dialog-title"> |
- <span id="dialog-title-about" class="i18n_options_dialog_about_title"></span> |
- <span id="dialog-title-custom" class="i18n_options_dialog_custom_title"></span> |
- <span id="dialog-title-language-add" class="i18n_options_dialog_language_title"></span> |
- <span id="dialog-title-language-change" class="i18n_options_dialog_language_title"></span> |
- <span id="dialog-title-predefined" class="i18n_options_dialog_predefined_title"></span> |
+ <h3 id="dialog-title-about" class="i18n_options_dialog_about_title"></h3> |
+ <h3 id="dialog-title-custom" class="i18n_options_dialog_custom_title"></h3> |
+ <h3 id="dialog-title-language-add" class="i18n_options_dialog_language_title"></h3> |
+ <h3 id="dialog-title-language-change" class="i18n_options_dialog_language_title"></h3> |
+ <h3 id="dialog-title-predefined" class="i18n_options_dialog_predefined_title"></h3> |
</span> |
- <button id="dialog-close" class="i18n_options_close focus-first" data-action="close-dialog"></button> |
+ <button id="dialog-close" data-action="close-dialog"></button> |
</header> |
<div id="dialog-body" class="content"> |
<!-- About Adblock Plus --> |
@@ -356,24 +351,20 @@ |
</div> |
<!-- Add custom subscription --> |
<div id="dialog-content-custom" class="dialog-content"> |
- <div class="dialog-content-block"> |
- <div> |
- <label for="blockingList-textbox" class="i18n_options_dialog_custom_subscription_title"></label> |
- <input id="blockingList-textbox" type="text" class="default-focus" placeholder="www.example.com/blockinglist.txt" /> |
- </div> |
- <button class="i18n_options_dialog_custom_import" data-action="import-subscription"></button> |
+ <div> |
+ <label for="blockingList-textbox" class="i18n_options_dialog_custom_subscription_title"></label> |
+ <input id="blockingList-textbox" type="text" class="default-focus" placeholder="https://website.com/filterlist.txt" /> |
</div> |
- <div class="dialog-content-block"> |
- <h3 class="i18n_options_dialog_edit_own_list"></h3> |
- <button class="i18n_options_dialog_create_own_list" data-action="close-dialog,switch-tab,edit-custom-filters" data-tab="advanced"></button> |
- </div> |
+ <p> |
+ <button class="i18n_options_dialog_custom_import primary" data-action="import-subscription"></button> |
+ </p> |
</div> |
<!-- Add predefined subscription --> |
<div id="dialog-content-predefined" class="dialog-content"> |
<div class="dialog-content-block"> |
<h3></h3> |
<div class="url"></div> |
- <button class="i18n_options_dialog_predefined_confirm default-focus" data-action="add-predefined-subscription"></button> |
+ <button class="i18n_options_dialog_predefined_confirm default-focus primary" data-action="add-predefined-subscription"></button> |
</div> |
</div> |
</div> |