feat(ui): update button styles and add focus ring
- Added new tertiary button style with focus ring. - Updated button classes in navbar and basket components for consistency.
This commit is contained in:
parent
44ffc4d34e
commit
14ceb300cf
5 changed files with 24 additions and 7 deletions
|
|
@ -21,3 +21,16 @@
|
|||
.stretched-link::after {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-tertiary {
|
||||
border-color: var(--bs-dark) !important;
|
||||
}
|
||||
|
||||
.focus-ring-dark {
|
||||
--bs-focus-ring-color: rgb(var(--bs-dark-rgb), 0.25) !important;
|
||||
}
|
||||
|
||||
|
||||
.btn-tertiary:hover {
|
||||
background-color: rgb(var(--bs-light-rgb), 0.85) !important;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
$primary: $color-primary;
|
||||
$secondary: $color-secondary;
|
||||
$tertiary: $color-tertiary;
|
||||
$success: $color-success;
|
||||
$info: $color-info;
|
||||
$warning: $color-warning;
|
||||
|
|
@ -11,6 +12,7 @@ $dark: $color-dark;
|
|||
$custom-theme-colors: (
|
||||
primary: $primary,
|
||||
secondary: $secondary,
|
||||
tertiary: $tertiary,
|
||||
success: $success,
|
||||
info: $info,
|
||||
warning: $warning,
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ $color-secondary: #5c636a;
|
|||
$color-info: #045487;
|
||||
$color-warning: #ffc454;
|
||||
$color-primary: $color-cocotte;
|
||||
$color-tertiary: #f8f6ed;
|
||||
|
||||
// * BODY
|
||||
$body-bg: #f8f9fa;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<button
|
||||
ref="navBasketButton"
|
||||
class="btn btn-outline-dark border-0 btn-lg text-decoration-none d-flex align-items-center gap-2"
|
||||
class="btn btn-tertiary border-dark focus-ring focus-ring-dark btn-lg text-decoration-none d-flex align-items-center gap-2"
|
||||
:title="__('Show basket')"
|
||||
data-bs-toggle="tooltip"
|
||||
aria-label="Ouvrir le panier"
|
||||
|
|
@ -12,10 +12,10 @@
|
|||
|
||||
<span
|
||||
v-show="count > 0"
|
||||
class="position-absolute top-0 start-100 translate-middle badge rounded-pill text-bg-primary"
|
||||
class="position-absolute top-0 start-100 translate-middle ms-2 badge rounded-pill text-bg-info"
|
||||
>
|
||||
{{ count }}
|
||||
<span class="visually-hidden">articles dans le panier</span>
|
||||
<span class="visually-hidden">{{ __('articles dans le panier') }}</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,8 @@
|
|||
<div class="input-group">
|
||||
<input class="form-control border-dark w-fit" id="search" name="search" type="text" value="{{ $search ?? '' }}"
|
||||
aria-label="{{ __('Search') }}" placeholder="{{ __('Search') }}...">
|
||||
<button class="btn btn-dark" data-bs-toggle="tooltip" data-bs-placement="bottom" type="submit" title="{{ __('Search') }}">
|
||||
<button class="btn btn-tertiary focus-ring focus-ring-dark" data-bs-toggle="tooltip" data-bs-placement="bottom" type="submit"
|
||||
title="{{ __('Search') }}">
|
||||
<i class="fa-solid fa-magnifying-glass"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -100,15 +101,15 @@
|
|||
{{-- HIDDEN ON MOBILE --}}
|
||||
<div class="align-items-center d-none d-md-flex order-4 ms-auto flex-col gap-1">
|
||||
<div class="position-relative nav-basket-button p-0"></div>
|
||||
<a class="btn btn-outline-dark btn-lg border-0" data-bs-toggle="tooltip" href="{{ route('fo.account.dashboard') }}"
|
||||
<a class="btn btn-tertiary focus-ring focus-ring-dark btn-lg" data-bs-toggle="tooltip" href="{{ route('fo.account.dashboard') }}"
|
||||
title="{{ __('Go to page :page', ['page' => __('Dashboard')]) }}">
|
||||
<i class="fa-solid fa-user-lock fa-lg"></i>
|
||||
</a>
|
||||
@auth('frontend')
|
||||
<form class="d-inline m-0 p-0" action="{{ route('fo.auth.deconnexion') }}" method="POST">
|
||||
@csrf
|
||||
<button class="btn btn-outline-dark btn-lg border-0" data-bs-toggle="tooltip" type="submit" title="{{ __('Logout') }}"
|
||||
aria-label="{{ __('Logout') }}">
|
||||
<button class="btn btn-tertiary focus-ring focus-ring-dark btn-lg" data-bs-toggle="tooltip" type="submit"
|
||||
title="{{ __('Logout') }}" aria-label="{{ __('Logout') }}">
|
||||
<i class="fa-solid fa-right-from-bracket fa-lg"></i>
|
||||
</button>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue