diff --git a/src/components/BackButton/BackButton.css b/src/components/BackButton/BackButton.css index 51926a09..85a958ec 100644 --- a/src/components/BackButton/BackButton.css +++ b/src/components/BackButton/BackButton.css @@ -1,10 +1,9 @@ .back-button { - width: 25px; - height: 5px; + width: 45px; + height: 25px; background-color: var(--base); cursor: pointer; padding: 0; - line-height: 1; display: flex; align-items: center; justify-content: center; diff --git a/src/components/BackButton/BackButton.tsx b/src/components/BackButton/BackButton.tsx index 8f5c93cf..2a1194ba 100644 --- a/src/components/BackButton/BackButton.tsx +++ b/src/components/BackButton/BackButton.tsx @@ -12,7 +12,7 @@ export default function BackButton({ return ( + )} + - )} - - + + ) } diff --git a/src/components/globals.css b/src/components/globals.css index ca63fd26..9d0455ac 100644 --- a/src/components/globals.css +++ b/src/components/globals.css @@ -53,14 +53,25 @@ \*------------------------------------*/ button { - all: unset; + border: none; + background: none; + text-align: left; cursor: pointer; + color: inherit; + font-size: inherit; + padding: 0; + margin: 0; + border-radius: inherit; } button:disabled { cursor: not-allowed; } +button:focus { + outline-offset: 4px; +} + /*------------------------------------*\ Components \*------------------------------------*/ diff --git a/src/components/page-components/FavouritesPage/FavouritesPage.tsx b/src/components/page-components/FavouritesPage/FavouritesPage.tsx index 827de971..48ae4a7b 100644 --- a/src/components/page-components/FavouritesPage/FavouritesPage.tsx +++ b/src/components/page-components/FavouritesPage/FavouritesPage.tsx @@ -131,15 +131,16 @@ export default function FavouritesPage() { {favouritesList.length > 0 ? (
{favouritesList.map(favourite => ( -
+ <> handlePopupRemove(favourite.id) } /> -
+ ))}
) : ( diff --git a/src/components/popup-components/PopupInfo/PopupInfo.css b/src/components/popup-components/PopupInfo/PopupInfo.css index a68c03bf..a2019077 100644 --- a/src/components/popup-components/PopupInfo/PopupInfo.css +++ b/src/components/popup-components/PopupInfo/PopupInfo.css @@ -4,8 +4,17 @@ body:has(.info-panel__active) { } button { - all: unset; + border: none; + background: none; + text-align: left; cursor: pointer; + color: inherit; + font-size: inherit; +} + +button:focus { + outline-offset: 4px; + transition: none; } .info-panel__inactive { @@ -73,9 +82,7 @@ button { background-color: #fff; border: 1px solid #fff; border-radius: 5px; - cursor: pointer; padding: 0; - line-height: 1; display: flex; align-items: center; justify-content: center;