forked from decidim/decidim
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement sticky buttons for main CTAs in Mobile UI (decidim#13002)
* remove stiky menu mobile * remove sticky menu mobile view * remove main-bar__links-mobile from spec * fix spec lint error * add login next to mobile menu * apply new design for header_defautl and header_login_ photo * install stylelint * create mobile_header_spec file * add mobile search block * add trailing newline * remove dupliacate id * add missing tag * add search to the menu * hide last svg when dropdown is close * add language-chooser to mobile-menu * hide login when dropdown open * add spec to test header features * add trailing newlines * configure sticky header * change spelling * change spelling * remove duplicate id * resolve review comments * display flash messages * remove unused code * fix duplicated ids * change ids name * check spelling * check spelling * add dinamics ids * separate desktop and mobile dropdowns * fix specs * add guard clause for sticky header * adjust header width * switch of logo to favicon on mobile * display favicon when mobile * add user_initials helper spec check * include application helper in devise_controller * refactor text_initials method * custom cta-button for meeting * change smile-line for initials when no image * custom meeting register button for mobile * run linter * add sticky cta proposal button * add proposals with threshold sticky-cta * add survey-cta sticky button * align survey sections buttons * add more-info dropdown for mobile * custom budget fixed-cta-button * custom participatory budget view for mobile * fix orders_spec * add dinamic footer margin * remove footer margin from desktop * refactor sticky_header script * add sticky button in progressbar for desktop * removed rubocop changed files * removed rubocop changed files * position cta-button for desktop * checkout tailwind.config.js.erb file to develop version * checkout tailwind.config.js.erb file to develop version * check for multiple ctas buttons * refactor adjustCtasButtons function * display progressbox-buttons * add media queries with tailwind classes * remove single quotes * remove extra-margin in budget view * add budget-summary_content_header.js file * fix broke design on desktop * remove trailling whitespaces * resolve requested changes for sticky_header.js * fix regressions in desktop meetings * resolve requested changes * apply review --------- Co-authored-by: Ivan Vergés <[email protected]>
- Loading branch information
1 parent
838a313
commit 41607b5
Showing
20 changed files
with
154 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dgets/app/views/decidim/budgets/projects/_order_progress_progressbar_marks_right.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<span class="budget-summary__progressbar-legend budget-summary__progressbar-marks_right" data-total-allocation="<%= current_order.available_allocation %>"> | ||
<%= t("budget", scope: "decidim.budgets.projects.order_progress") %> | ||
<strong class="budget-summary__progressbar-legend-strong"> | ||
<% if current_order.projects_rule? %> | ||
<%= current_order.maximum_projects %> | ||
<% else %> | ||
<%= budget_to_currency(budget.total_budget) %> | ||
<% end %> | ||
</strong> | ||
<%= t("budget", scope: "decidim.budgets.projects.order_progress") %> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
decidim-core/app/views/layouts/decidim/header/_main_links_mobile_search.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div id="dropdown-menu-search-mobile" class="main-bar__links-mobile__search" aria-hidden="true"> | ||
<div class="main-bar"> | ||
<div class="main-bar__logo"> | ||
<%= render partial: "layouts/decidim/logo", locals: { organization: current_organization } %> | ||
</div> | ||
|
||
<div> | ||
<div class="main-bar__links-mobile__trigger" onclick="document.querySelector('#dropdown-trigger-links-mobile-search').click();"> | ||
<%= icon "close-line" %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
decidim-meetings/app/cells/decidim/meetings/join_meeting_button/remaining_slots.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<div class="meeting__aside-progress"> | ||
<span><%= t("remaining_slots", scope: "decidim.meetings.meetings.show", count: model.remaining_slots) %></span> | ||
<progress value="<%= model.remaining_slots %>" max="<%= model.available_slots %>"></progress> | ||
<span class="meeting__aside-progress-label"><%= model.remaining_slots %> / <%= model.available_slots %></span> | ||
</div> |
Oops, something went wrong.