Skip to content

Commit

Permalink
feat: fix mini-button-group size
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideMininni-Fincons committed Aug 21, 2024
1 parent d68b8b3 commit 71500f1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ snapshots["sbb-paginator renders DOM"] =
snapshots["sbb-paginator renders Shadow DOM"] =
`<div class="sbb-paginator">
<div class="sbb-paginator__buttons">
<sbb-mini-button-group size="m">
<sbb-mini-button-group size="l">
<sbb-mini-button
aria-disabled="true"
aria-label="Previous page"
Expand Down Expand Up @@ -83,7 +83,7 @@ snapshots["sbb-paginator renders ellipsis on end side DOM"] =
snapshots["sbb-paginator renders ellipsis on end side Shadow DOM"] =
`<div class="sbb-paginator">
<div class="sbb-paginator__buttons">
<sbb-mini-button-group size="m">
<sbb-mini-button-group size="l">
<sbb-mini-button
aria-disabled="true"
aria-label="Previous page"
Expand Down Expand Up @@ -202,7 +202,7 @@ snapshots["sbb-paginator renders ellipsis on start side DOM"] =
snapshots["sbb-paginator renders ellipsis on start side Shadow DOM"] =
`<div class="sbb-paginator">
<div class="sbb-paginator__buttons">
<sbb-mini-button-group size="m">
<sbb-mini-button-group size="l">
<sbb-mini-button
aria-label="Previous page"
data-action=""
Expand Down Expand Up @@ -320,7 +320,7 @@ snapshots["sbb-paginator renders ellipsis on both side DOM"] =
snapshots["sbb-paginator renders ellipsis on both side Shadow DOM"] =
`<div class="sbb-paginator">
<div class="sbb-paginator__buttons">
<sbb-mini-button-group size="m">
<sbb-mini-button-group size="l">
<sbb-mini-button
aria-label="Previous page"
data-action=""
Expand Down Expand Up @@ -442,7 +442,7 @@ snapshots["sbb-paginator renders with options Safari DOM"] =
snapshots["sbb-paginator renders with options Safari Shadow DOM"] =
`<div class="sbb-paginator">
<div class="sbb-paginator__buttons">
<sbb-mini-button-group size="m">
<sbb-mini-button-group size="l">
<sbb-mini-button
aria-disabled="true"
aria-label="Previous page"
Expand Down Expand Up @@ -637,32 +637,6 @@ snapshots["sbb-paginator renders A11y tree Chrome"] =
`;
/* end snapshot sbb-paginator renders A11y tree Chrome */

snapshots["sbb-paginator renders A11y tree Firefox"] =
`<p>
{
"role": "document",
"name": "",
"children": [
{
"role": "button",
"name": "Previous page",
"disabled": true
},
{
"role": "button",
"name": "Next page",
"disabled": true
},
{
"role": "button",
"name": "Page 1"
}
]
}
</p>
`;
/* end snapshot sbb-paginator renders A11y tree Firefox */

snapshots["sbb-paginator renders with options Chrome-Firefox DOM"] =
`<sbb-paginator
length="50"
Expand All @@ -675,7 +649,7 @@ snapshots["sbb-paginator renders with options Chrome-Firefox DOM"] =
snapshots["sbb-paginator renders with options Chrome-Firefox Shadow DOM"] =
`<div class="sbb-paginator">
<div class="sbb-paginator__buttons">
<sbb-mini-button-group size="m">
<sbb-mini-button-group size="l">
<sbb-mini-button
aria-disabled="true"
aria-label="Previous page"
Expand Down Expand Up @@ -842,3 +816,29 @@ snapshots["sbb-paginator renders with options Chrome-Firefox Shadow DOM"] =
`;
/* end snapshot sbb-paginator renders with options Chrome-Firefox Shadow DOM */

snapshots["sbb-paginator renders A11y tree Firefox"] =
`<p>
{
"role": "document",
"name": "",
"children": [
{
"role": "button",
"name": "Previous page",
"disabled": true
},
{
"role": "button",
"name": "Next page",
"disabled": true
},
{
"role": "button",
"name": "Page 1"
}
]
}
</p>
`;
/* end snapshot sbb-paginator renders A11y tree Firefox */

2 changes: 1 addition & 1 deletion src/elements/paginator/paginator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class SbbPaginatorElement extends SbbNegativeMixin(LitElement) {
private _renderPrevNextButtons(): TemplateResult {
return html`
<div class="sbb-paginator__buttons">
<sbb-mini-button-group ?negative=${this.negative}>
<sbb-mini-button-group ?negative=${this.negative} size="l">
<sbb-mini-button
id="sbb-paginator-prev-page"
aria-label=${i18nPreviousPage[this._language.current]}
Expand Down

0 comments on commit 71500f1

Please sign in to comment.