Skip to content

Commit

Permalink
Merge pull request #2815 from evidence-dev/fix/2797
Browse files Browse the repository at this point in the history
Fix/2797
  • Loading branch information
mcrascal authored Nov 19, 2024
2 parents 2dd0445 + ced875b commit 297845c
Show file tree
Hide file tree
Showing 4 changed files with 295 additions and 1,289 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-pugs-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/core-components': patch
---

Align the height of buttongroup to dropdown
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<div
class={display === 'tabs'
? 'my-6 flex flex-wrap gap-x-1 gap-y-1'
: 'inline-flex rounded-md shadow-sm overflow-auto border no-scrollbar'}
: 'inline-flex rounded-md shadow-sm overflow-auto h-8 border no-scrollbar'}
role="group"
>
{#if preset}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@
{:else if display === 'buttons'}
<button
type="button"
class=" flex-none py-1 font-medium h-8 px-3 text-xs truncate
class=" flex-none py-1 font-medium px-3 text-xs truncate
border-r last:border-none
hover:bg-gray-100 focus:z-10 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-400
transition-colors duration-200
{$currentValue?.value === value
? 'z-10 border-gray-200 bg-gray-100 text-blue-700'
? 'z-10 border-gray-200 bg-gray-50 text-blue-600'
: 'z-0 bg-white text-gray-900 border-gray-200'}
"
on:click={() => update({ valueLabel, value })}
Expand Down
Loading

0 comments on commit 297845c

Please sign in to comment.