Skip to content

Commit

Permalink
fix(pagination): taille des bouton en sm, ecart revu, ajout title
Browse files Browse the repository at this point in the history
  • Loading branch information
keryanS authored and lab9fr committed Jun 19, 2023
1 parent 1c01df7 commit 8125a84
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/component/pagination/example/sample/pagination.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ for (i = 130; i < 133; i++) pages.push({label:i, title:'Page ' + i, href: href,
if (pagination.index !== undefined) pages[pagination.index].active = true;
let data = {
first: { label: 'Première page', href: href },
prev: { label: 'Page précédente', href: href, hasLgLabel: true },
next: { label: 'Page suivante', href: href, hasLgLabel: true },
last: { label: 'Dernière page', href: href },
first: { label: 'Première page', title: 'Première page', href:href },
prev: { label: 'Page précédente', title: 'Page précédente', href:href, hasLgLabel: true },
next: { label: 'Page suivante', title: 'Page suivante', href:href, hasLgLabel: true },
last: { label: 'Dernière page', title: 'Dernière page', href:href },
pages : pages
}
%>
Expand Down
14 changes: 1 addition & 13 deletions src/component/pagination/style/_module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

&__link {
@include min-size(8v);
@include margin-x(0.5v);
@include margin-x(2v);
@include margin-bottom(4v);
@include disable-underline;
@include relative;
Expand Down Expand Up @@ -86,17 +86,5 @@
@include nest-pagination(right, arrow-right-s-last-line, lg);
}
}

&--first,
&--prev {
@include margin-right(3.5v);
@include margin-left(-2.5v);
}

&--next,
&--last {
@include margin-right(-2.5v);
@include margin-left(3.5v);
}
}
}
6 changes: 3 additions & 3 deletions src/component/pagination/style/_setting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ $pagination-build-settings:(
selector: pagination__link,
sizes: (
md: (
font-size: 4v,
font-size: 3.5v,
min-height: 8v,
padding-x: 3v,
icon: md,
icon: sm,
icon-margin-x: 2v,
icon-only: md
icon-only: sm,
)
),
display: flex
Expand Down

0 comments on commit 8125a84

Please sign in to comment.