Skip to content

Commit d96f0d1

Browse files
zoltanszogyenyimaman
authored andcommitted
Minor visual fixes for components (buttons, breadcrumbs, list group) (themesberg#971)
* fix(breadcrumb): size of chevron icons * fix(buttons): align inner wrapper elements vertically (ie. buttons with icons) * fix(list group): align icons with text vertically * fix(spinner): make the spinner size smaller * fix(toast): alignment for the buttons
1 parent e0dddf5 commit d96f0d1

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

app/docs/components/spinner/spinner.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ Add the loading spinner inside a button to indicate fetching status directly ins
6868

6969
<CodePreview importFlowbiteReact="Button, Spinner" title="Buttons" className="flex flex-row gap-3">
7070
<Button>
71-
<Spinner aria-label="Spinner button example" />
71+
<Spinner aria-label="Spinner button example" size="sm" />
7272
<span className="pl-3">Loading...</span>
7373
</Button>
7474
<Button color="gray">
75-
<Spinner aria-label="Alternate spinner button example" />
75+
<Spinner aria-label="Alternate spinner button example" size="sm" />
7676
<span className="pl-3">Loading...</span>
7777
</Button>
7878
</CodePreview>

app/docs/components/toast/toast.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ This component can be used to show more complex messages with buttons and other
121121
<span className="mb-1 text-sm font-semibold text-gray-900 dark:text-white">Update available</span>
122122
<div className="mb-2 text-sm font-normal">A new software version is available for download.</div>
123123
<div className="flex-start flex gap-2">
124-
<div className="w-full">
124+
<div className="w-auto">
125125
<Button size="xs">Update</Button>
126126
</div>
127-
<div className="w-full">
127+
<div className="w-auto">
128128
<Button color="light" size="xs">
129129
Not now
130130
</Button>

src/components/Breadcrumb/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const breadcrumbTheme: FlowbiteBreadcrumbTheme = {
77
},
88
item: {
99
base: 'group flex items-center',
10-
chevron: 'mx-1 h-6 w-6 text-gray-400 group-first:hidden md:mx-2',
10+
chevron: 'mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2',
1111
href: {
1212
off: 'flex items-center text-sm font-medium text-gray-500 dark:text-gray-400',
1313
on: 'flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white',

src/components/Button/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const buttonTheme: FlowbiteButtonTheme = {
7272
'text-gray-900 bg-gradient-to-r from-teal-200 to-lime-200 enabled:hover:bg-gradient-to-l enabled:hover:from-teal-200 enabled:hover:to-lime-200 enabled:hover:text-gray-900 focus:ring-4 focus:ring-lime-200 dark:focus:ring-teal-700',
7373
},
7474
inner: {
75-
base: 'flex items-stretch transition-all duration-200',
75+
base: 'flex items-stretch items-center transition-all duration-200',
7676
position: {
7777
none: '',
7878
start: 'rounded-r-none',

src/components/ListGroup/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const listGroupTheme: FlowbiteListGroupTheme = {
77
item: {
88
base: '[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0',
99
link: {
10-
base: 'flex w-full border-b border-gray-200 py-2 px-4 dark:border-gray-600',
10+
base: 'flex items-center w-full border-b border-gray-200 py-2 px-4 dark:border-gray-600',
1111
active: {
1212
off: 'hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500',
1313
on: 'bg-cyan-700 text-white dark:bg-gray-800',

0 commit comments

Comments
 (0)