From 85c4226bd04dba7c8bb96dcff0b64cf7ccb49eda Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 30 May 2024 12:03:30 +0200 Subject: [PATCH] chore(Breadcrumb): `font-medium` on active link only --- src/theme/breadcrumb.ts | 4 +- .../__snapshots__/Breadcrumb.spec.ts.snap | 56 +++++++++---------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/theme/breadcrumb.ts b/src/theme/breadcrumb.ts index 1269a05f..7c55cd3f 100644 --- a/src/theme/breadcrumb.ts +++ b/src/theme/breadcrumb.ts @@ -3,7 +3,7 @@ export default { root: 'relative min-w-0', list: 'flex items-center gap-1.5', item: 'flex min-w-0', - link: 'group relative flex items-center gap-1.5 font-medium text-sm min-w-0', + link: 'group relative flex items-center gap-1.5 text-sm min-w-0', linkLeadingIcon: 'shrink-0 size-5', linkLeadingAvatar: 'shrink-0', linkLabel: 'truncate', @@ -13,7 +13,7 @@ export default { variants: { active: { true: { - link: 'text-primary-500 dark:text-primary-400' + link: 'text-primary-500 dark:text-primary-400 font-medium' }, false: { link: 'text-gray-500 dark:text-gray-400' diff --git a/test/components/__snapshots__/Breadcrumb.spec.ts.snap b/test/components/__snapshots__/Breadcrumb.spec.ts.snap index b30829ce..3307a50f 100644 --- a/test/components/__snapshots__/Breadcrumb.spec.ts.snap +++ b/test/components/__snapshots__/Breadcrumb.spec.ts.snap @@ -3,11 +3,11 @@ exports[`Breadcrumb > renders with class correctly 1`] = ` "
    -
  1. Home
  2. +
  3. Home
  4. -
  5. Navigation
  6. +
  7. Navigation
  8. -
  9. Breadcrumb
  10. +
  11. Breadcrumb
" @@ -16,11 +16,11 @@ exports[`Breadcrumb > renders with class correctly 1`] = ` exports[`Breadcrumb > renders with custom slot correctly 1`] = ` "
    -
  1. Home
  2. +
  3. Home
  4. -
  5. Navigation
  6. +
  7. Navigation
  8. -
  9. Custom slot
  10. +
  11. Custom slot
" @@ -29,11 +29,11 @@ exports[`Breadcrumb > renders with custom slot correctly 1`] = ` exports[`Breadcrumb > renders with item slot correctly 1`] = ` "
    -
  1. Item slot
  2. +
  3. Item slot
  4. -
  5. Item slot
  6. +
  7. Item slot
  8. -
  9. Breadcrumb
  10. +
  11. Breadcrumb
" @@ -42,11 +42,11 @@ exports[`Breadcrumb > renders with item slot correctly 1`] = ` exports[`Breadcrumb > renders with item-label slot correctly 1`] = ` "
    -
  1. Item label slot
  2. +
  3. Item label slot
  4. -
  5. Item label slot
  6. +
  7. Item label slot
  8. -
  9. Breadcrumb
  10. +
  11. Breadcrumb
" @@ -55,11 +55,11 @@ exports[`Breadcrumb > renders with item-label slot correctly 1`] = ` exports[`Breadcrumb > renders with item-leading slot correctly 1`] = ` "
    -
  1. Item leading slotHome
  2. +
  3. Item leading slotHome
  4. -
  5. Item leading slotNavigation
  6. +
  7. Item leading slotNavigation
  8. -
  9. Breadcrumb
  10. +
  11. Breadcrumb
" @@ -68,11 +68,11 @@ exports[`Breadcrumb > renders with item-leading slot correctly 1`] = ` exports[`Breadcrumb > renders with item-trailing slot correctly 1`] = ` "
    -
  1. HomeItem trailing slot
  2. +
  3. HomeItem trailing slot
  4. -
  5. NavigationItem trailing slot
  6. +
  7. NavigationItem trailing slot
  8. -
  9. Breadcrumb
  10. +
  11. Breadcrumb
" @@ -81,11 +81,11 @@ exports[`Breadcrumb > renders with item-trailing slot correctly 1`] = ` exports[`Breadcrumb > renders with items correctly 1`] = ` "
    -
  1. Home
  2. +
  3. Home
  4. -
  5. Navigation
  6. +
  7. Navigation
  8. -
  9. Breadcrumb
  10. +
  11. Breadcrumb
" @@ -94,11 +94,11 @@ exports[`Breadcrumb > renders with items correctly 1`] = ` exports[`Breadcrumb > renders with separator slot correctly 1`] = ` "
    -
  1. Home
  2. +
  3. Home
  4. -
  5. Navigation
  6. +
  7. Navigation
  8. -
  9. Breadcrumb
  10. +
  11. Breadcrumb
" @@ -107,11 +107,11 @@ exports[`Breadcrumb > renders with separator slot correctly 1`] = ` exports[`Breadcrumb > renders with separatorIcon correctly 1`] = ` "
    -
  1. Home
  2. +
  3. Home
  4. -
  5. Navigation
  6. +
  7. Navigation
  8. -
  9. Breadcrumb
  10. +
  11. Breadcrumb
" @@ -124,7 +124,7 @@ exports[`Breadcrumb > renders with ui correctly 1`] = `
  • Navigation
  • -
  • Breadcrumb
  • +
  • Breadcrumb
  • "