Skip to content

Commit

Permalink
Guide: Use small size button for page controls (WordPress#66607)
Browse files Browse the repository at this point in the history
* Guide: Use small size button for page controls

* Add changelog

Co-authored-by: mirka <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
4 people authored and karthick-murugan committed Nov 13, 2024
1 parent 2bbae22 commit d8583ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Enhancements

- `Guide`: Use small size button for page controls ([#66607](https://github.com/WordPress/gutenberg/pull/66607)).
- `PaletteEdit`: Add appropriate size props to Buttons ([#66590](https://github.com/WordPress/gutenberg/pull/66590)).

### Internal
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/guide/page-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function PageControl( {
aria-current={ page === currentPage ? 'step' : undefined }
>
<Button
size="small"
key={ page }
icon={ <PageControlIcon /> }
aria-label={ sprintf(
Expand Down
10 changes: 4 additions & 6 deletions packages/components/src/guide/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
}
}

&__container {
.components-guide__container {
display: flex;
flex-direction: column;
justify-content: space-between;
margin-top: -$header-height;
min-height: 100%;
}

&__page {
.components-guide__page {
display: flex;
flex-direction: column;
justify-content: center;
Expand All @@ -53,7 +53,7 @@
}
}

&__footer {
.components-guide__footer {
align-content: center;
display: flex;
height: $button-size;
Expand All @@ -64,7 +64,7 @@
width: 100%;
}

&__page-control {
.components-guide__page-control {
margin: 0;
text-align: center;

Expand All @@ -74,8 +74,6 @@
}

.components-button {
height: 30px;
min-width: 20px;
margin: -6px 0;
color: $gray-200;
}
Expand Down

0 comments on commit d8583ab

Please sign in to comment.