File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
frontend/src/components/ui Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,11 @@ export class NavigationButton extends TailwindElement {
39
39
@property ( { type : Boolean } )
40
40
disabled = false ;
41
41
42
- @property ( { type : Boolean } )
43
- icon = false ;
44
-
45
42
@property ( { type : String , reflect : true } )
46
43
role : ARIAMixin [ "role" ] = null ;
47
44
48
45
@property ( { type : String } )
49
- size : "small" | "medium" | "large" = "medium" ;
46
+ size : "x-small" | " small" | "medium" | "large" = "medium" ;
50
47
51
48
@property ( { type : String } )
52
49
align : "left" | "center" | "right" = "left" ;
@@ -82,10 +79,9 @@ export class NavigationButton extends TailwindElement {
82
79
part="button"
83
80
class=${ clsx ( [
84
81
tw `flex w-full cursor-pointer items-center gap-2 rounded font-medium leading-[16px] transition hover:transition-none focus-visible:outline focus-visible:outline-3 focus-visible:outline-offset-1 disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-50` ,
85
-
86
- this . icon ? tw `min-h-6 min-w-6` : tw `` ,
87
82
{
88
- small : this . icon ? tw `min-h-6 p-0` : tw `min-h-6 px-2 py-0` ,
83
+ "x-small" : tw `min-size-6 px-1 py-0` ,
84
+ small : tw `min-h-6 px-2 py-0` ,
89
85
medium : tw `p-2` ,
90
86
large : tw `px-2 py-4` ,
91
87
} [ this . size ] ,
Original file line number Diff line number Diff line change @@ -370,9 +370,8 @@ export class Pagination extends LitElement {
370
370
const isCurrent = page === this . _page ;
371
371
return html `< li aria-current =${ ifDefined ( isCurrent ? "page" : undefined ) } >
372
372
< btrix-navigation-button
373
- icon
374
373
.active =${ isCurrent }
375
- .size =${ "small" }
374
+ .size =${ "x- small" }
376
375
.align=${ "center" }
377
376
@click=${ ( ) => this . onPageChange ( page ) }
378
377
aria-disabled=${ isCurrent }
You can’t perform that action at this time.
0 commit comments