Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX/UI: forcer la position .dropdown-menu sur les menu "mon espace" et "besoin d'aide" #4855

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion itou/templates/layout/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h4 class="h5 mb-0 btn-ico align-items-center" id="offcanvasApplyFiltersLabel">
<i class="ri-user-add-line" aria-hidden="true"></i>
<span>S’inscrire</span>
</a>
<div class="dropdown">
<div class="dropup dropup-center">
<button type="button" class="btn btn-link btn-block dropdown-toggle p-0" data-bs-toggle="dropdown" aria-haspopup="true" aria-controls="helpDropdownMobile" aria-expanded="false">
Besoin d’aide ?
</button>
Expand Down
4 changes: 2 additions & 2 deletions itou/templates/layout/_header_authenticated.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
<nav class="flex-grow-1" role="navigation" aria-label="Navigation principale">
{% nav request %}
</nav>
<div class="dropdown d-sm-none d-xl-inline-block">
<div class="dropup dropup-center d-sm-none d-xl-inline-block">
<button type="button"
class="btn btn-outline-primary btn-ico btn-block bg-white dropdown-toggle my-3"
data-bs-toggle="dropdown"
Expand All @@ -157,7 +157,7 @@
{% include "layout/_header_user_dropdown_menu.html" with request=request user=user mobile=True csrf_token=csrf_token only %}
</div>
</div>
<div class="dropdown">
<div class="dropup dropup-center">
<button type="button" class="btn btn-link btn-block dropdown-toggle p-0" data-bs-toggle="dropdown" aria-haspopup="true" aria-controls="helpDropdownMobile" aria-expanded="false">
Besoin d'aide ?
</button>
Expand Down
6 changes: 3 additions & 3 deletions itou/utils/staticfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@
},
"theme-inclusion": {
"download": {
"url": "https://github.com/gip-inclusion/itou-theme/archive/refs/tags/v2.2.3.zip",
"sha256": "ca0c6edff6cfdd2848c9a7e1e49e263ce83422ff94f3fcf751c4eba0956cfcba",
"url": "https://github.com/gip-inclusion/itou-theme/archive/refs/tags/v2.2.4.zip",
"sha256": "0da5e56a31f4ab53aeff49466aca6d33442aa4373aeb650c45b4730d6dc60603",
},
"extract": {
"origin": "itou-theme-2.2.3/dist",
"origin": "itou-theme-2.2.4/dist",
"destination": "vendor/theme-inclusion/",
"files": [
"javascripts/app.js",
Expand Down
24 changes: 12 additions & 12 deletions tests/www/__snapshots__/test_layout.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
</ul>

</nav>
<div class="dropdown d-sm-none d-xl-inline-block">
<div class="dropup dropup-center d-sm-none d-xl-inline-block">
<button aria-controls="dashboardUserDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-outline-primary btn-ico btn-block bg-white dropdown-toggle my-3" data-bs-toggle="dropdown" type="button">
<i aria-hidden="true" class="ri-account-circle-line"></i>
<span class="ms-2">Mon espace</span>
Expand Down Expand Up @@ -145,7 +145,7 @@

</div>
</div>
<div class="dropdown">
<div class="dropup dropup-center">
<button aria-controls="helpDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-link btn-block dropdown-toggle p-0" data-bs-toggle="dropdown" type="button">
Besoin d'aide ?
</button>
Expand Down Expand Up @@ -373,7 +373,7 @@
</ul>

</nav>
<div class="dropdown d-sm-none d-xl-inline-block">
<div class="dropup dropup-center d-sm-none d-xl-inline-block">
<button aria-controls="dashboardUserDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-outline-primary btn-ico btn-block bg-white dropdown-toggle my-3" data-bs-toggle="dropdown" type="button">
<i aria-hidden="true" class="ri-account-circle-line"></i>
<span class="ms-2">Mon espace</span>
Expand Down Expand Up @@ -422,7 +422,7 @@

</div>
</div>
<div class="dropdown">
<div class="dropup dropup-center">
<button aria-controls="helpDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-link btn-block dropdown-toggle p-0" data-bs-toggle="dropdown" type="button">
Besoin d'aide ?
</button>
Expand Down Expand Up @@ -602,7 +602,7 @@
</ul>

</nav>
<div class="dropdown d-sm-none d-xl-inline-block">
<div class="dropup dropup-center d-sm-none d-xl-inline-block">
<button aria-controls="dashboardUserDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-outline-primary btn-ico btn-block bg-white dropdown-toggle my-3" data-bs-toggle="dropdown" type="button">
<i aria-hidden="true" class="ri-account-circle-line"></i>
<span class="ms-2">Mon espace</span>
Expand Down Expand Up @@ -653,7 +653,7 @@

</div>
</div>
<div class="dropdown">
<div class="dropup dropup-center">
<button aria-controls="helpDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-link btn-block dropdown-toggle p-0" data-bs-toggle="dropdown" type="button">
Besoin d'aide ?
</button>
Expand Down Expand Up @@ -841,7 +841,7 @@
</ul>

</nav>
<div class="dropdown d-sm-none d-xl-inline-block">
<div class="dropup dropup-center d-sm-none d-xl-inline-block">
<button aria-controls="dashboardUserDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-outline-primary btn-ico btn-block bg-white dropdown-toggle my-3" data-bs-toggle="dropdown" type="button">
<i aria-hidden="true" class="ri-account-circle-line"></i>
<span class="ms-2">Mon espace</span>
Expand Down Expand Up @@ -887,7 +887,7 @@

</div>
</div>
<div class="dropdown">
<div class="dropup dropup-center">
<button aria-controls="helpDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-link btn-block dropdown-toggle p-0" data-bs-toggle="dropdown" type="button">
Besoin d'aide ?
</button>
Expand Down Expand Up @@ -1090,7 +1090,7 @@
</ul>

</nav>
<div class="dropdown d-sm-none d-xl-inline-block">
<div class="dropup dropup-center d-sm-none d-xl-inline-block">
<button aria-controls="dashboardUserDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-outline-primary btn-ico btn-block bg-white dropdown-toggle my-3" data-bs-toggle="dropdown" type="button">
<i aria-hidden="true" class="ri-account-circle-line"></i>
<span class="ms-2">Mon espace</span>
Expand Down Expand Up @@ -1134,7 +1134,7 @@

</div>
</div>
<div class="dropdown">
<div class="dropup dropup-center">
<button aria-controls="helpDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-link btn-block dropdown-toggle p-0" data-bs-toggle="dropdown" type="button">
Besoin d'aide ?
</button>
Expand Down Expand Up @@ -1314,7 +1314,7 @@
</ul>

</nav>
<div class="dropdown d-sm-none d-xl-inline-block">
<div class="dropup dropup-center d-sm-none d-xl-inline-block">
<button aria-controls="dashboardUserDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-outline-primary btn-ico btn-block bg-white dropdown-toggle my-3" data-bs-toggle="dropdown" type="button">
<i aria-hidden="true" class="ri-account-circle-line"></i>
<span class="ms-2">Mon espace</span>
Expand Down Expand Up @@ -1358,7 +1358,7 @@

</div>
</div>
<div class="dropdown">
<div class="dropup dropup-center">
<button aria-controls="helpDropdownMobile" aria-expanded="false" aria-haspopup="true" class="btn btn-link btn-block dropdown-toggle p-0" data-bs-toggle="dropdown" type="button">
Besoin d'aide ?
</button>
Expand Down