From 4fce23843ec4758b6c46f456a445c3f8b40e608c Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Wed, 10 Dec 2025 15:27:26 +0100 Subject: [PATCH] change filter svg by img tag --- public/sortByAntiAlpha.svg | 2 +- src/components/Filter/Filter.jsx | 18 ++++-------------- src/components/Filter/Filter.module.css | 19 +------------------ src/components/ToolBar/ToolBar.module.css | 5 ++++- 4 files changed, 10 insertions(+), 34 deletions(-) diff --git a/public/sortByAntiAlpha.svg b/public/sortByAntiAlpha.svg index f74e5d8..adea5c6 100644 --- a/public/sortByAntiAlpha.svg +++ b/public/sortByAntiAlpha.svg @@ -1,4 +1,4 @@ - + diff --git a/src/components/Filter/Filter.jsx b/src/components/Filter/Filter.jsx index 6e70259..3dcf4ae 100644 --- a/src/components/Filter/Filter.jsx +++ b/src/components/Filter/Filter.jsx @@ -20,38 +20,28 @@ function Filter({isFilterVisible, filters, setFilters}){ Tri alphabétique croissant (A à Z) diff --git a/src/components/Filter/Filter.module.css b/src/components/Filter/Filter.module.css index 38902fc..030dbe5 100644 --- a/src/components/Filter/Filter.module.css +++ b/src/components/Filter/Filter.module.css @@ -35,31 +35,14 @@ .filterTag:focus { outline: none; } -.filterTag:focus-visible { - outline: 2px solid black; -} .filterTag:hover { cursor: pointer; - svg{ - fill: #019AFF; - } -} - - -.filterTag svg { - transform: scale(0.7); - color: black; } .active { - border: 1px solid #019AFF; -} - -.active svg { - fill: #019AFF; - transform: scale(0.8); + border: 2px solid #019AFF; } @media screen and (max-width: 768px){ diff --git a/src/components/ToolBar/ToolBar.module.css b/src/components/ToolBar/ToolBar.module.css index 1b53950..bb04573 100644 --- a/src/components/ToolBar/ToolBar.module.css +++ b/src/components/ToolBar/ToolBar.module.css @@ -16,6 +16,9 @@ padding: 0; border-radius: 30px; overflow: visible; + display: flex; + align-items: center; + flex-direction: column; } .filterMenu{ @@ -93,8 +96,8 @@ } .filterContainer{ - display: flex; width: fit-content; + flex-direction: row; } .filterMenu{